diff --git a/mobile/lib/infrastructure/repositories/map.repository.dart b/mobile/lib/infrastructure/repositories/map.repository.dart index 9de0ca722d..0c6864b718 100644 --- a/mobile/lib/infrastructure/repositories/map.repository.dart +++ b/mobile/lib/infrastructure/repositories/map.repository.dart @@ -31,11 +31,11 @@ class DriftMapRepository extends DriftDatabaseRepository { final hasCustomRange = timeRange.from.isSome || timeRange.to.isSome; if (hasCustomRange) { - timeRange.from.ifSome((from) { + timeRange.from.ifPresent((from) { condition = condition & _db.remoteAssetEntity.createdAt.isBiggerOrEqualValue(from); }); - timeRange.to.ifSome((to) { + timeRange.to.ifPresent((to) { condition = condition & _db.remoteAssetEntity.createdAt.isSmallerOrEqualValue(to); }); } else if (options.relativeDays > 0) { diff --git a/mobile/lib/infrastructure/repositories/timeline.repository.dart b/mobile/lib/infrastructure/repositories/timeline.repository.dart index ac6ccf37ef..13a1c9ca24 100644 --- a/mobile/lib/infrastructure/repositories/timeline.repository.dart +++ b/mobile/lib/infrastructure/repositories/timeline.repository.dart @@ -557,11 +557,11 @@ class DriftTimelineRepository extends DriftDatabaseRepository { final hasCustomRange = timeRange.from.isSome || timeRange.to.isSome; if (hasCustomRange) { - timeRange.from.ifSome((from) { + timeRange.from.ifPresent((from) { query.where(_db.remoteAssetEntity.createdAt.isBiggerOrEqualValue(from)); }); - timeRange.to.ifSome((to) { + timeRange.to.ifPresent((to) { query.where(_db.remoteAssetEntity.createdAt.isSmallerOrEqualValue(to)); }); } else if (options.relativeDays > 0) { @@ -612,11 +612,11 @@ class DriftTimelineRepository extends DriftDatabaseRepository { final hasCustomRange = timeRange.from.isSome || timeRange.to.isSome; if (hasCustomRange) { - timeRange.from.ifSome((from) { + timeRange.from.ifPresent((from) { query.where(_db.remoteAssetEntity.createdAt.isBiggerOrEqualValue(from)); }); - timeRange.to.ifSome((to) { + timeRange.to.ifPresent((to) { query.where(_db.remoteAssetEntity.createdAt.isSmallerOrEqualValue(to)); }); } else if (options.relativeDays > 0) {