mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor: rename customtimerange variables
This commit is contained in:
@@ -27,8 +27,8 @@ class DriftMapRepository extends DriftDatabaseRepository {
|
||||
condition = condition & _db.remoteAssetEntity.isFavorite.equals(true);
|
||||
}
|
||||
|
||||
final from = options.customTimeRange.from;
|
||||
final to = options.customTimeRange.to;
|
||||
final from = options.timeRange.from;
|
||||
final to = options.timeRange.to;
|
||||
|
||||
if (from != null || to != null) {
|
||||
if (from != null) {
|
||||
|
||||
@@ -22,7 +22,7 @@ class TimelineMapOptions {
|
||||
final bool includeArchived;
|
||||
final bool withPartners;
|
||||
final int relativeDays;
|
||||
final TimeRange customTimeRange;
|
||||
final TimeRange timeRange;
|
||||
|
||||
const TimelineMapOptions({
|
||||
required this.bounds,
|
||||
@@ -30,7 +30,7 @@ class TimelineMapOptions {
|
||||
this.includeArchived = false,
|
||||
this.withPartners = false,
|
||||
this.relativeDays = 0,
|
||||
this.customTimeRange = const TimeRange(),
|
||||
this.timeRange = const TimeRange(),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -531,8 +531,8 @@ class DriftTimelineRepository extends DriftDatabaseRepository {
|
||||
query.where(_db.remoteAssetEntity.isFavorite.equals(true));
|
||||
}
|
||||
|
||||
final from = options.customTimeRange.from;
|
||||
final to = options.customTimeRange.to;
|
||||
final from = options.timeRange.from;
|
||||
final to = options.timeRange.to;
|
||||
|
||||
if (from != null || to != null) {
|
||||
// Use custom from/to filters
|
||||
@@ -585,8 +585,8 @@ class DriftTimelineRepository extends DriftDatabaseRepository {
|
||||
query.where(_db.remoteAssetEntity.isFavorite.equals(true));
|
||||
}
|
||||
|
||||
final from = options.customTimeRange.from;
|
||||
final to = options.customTimeRange.to;
|
||||
final from = options.timeRange.from;
|
||||
final to = options.timeRange.to;
|
||||
|
||||
if (from != null || to != null) {
|
||||
// Use custom from/to filters
|
||||
|
||||
Reference in New Issue
Block a user