mirror of
https://github.com/immich-app/immich.git
synced 2025-08-11 09:16:31 -04:00
remove locked and favorite
This commit is contained in:
parent
3ec177f9e8
commit
2749204b4f
@ -17,12 +17,6 @@ class MapFactory {
|
||||
|
||||
MapService remote(String ownerId) =>
|
||||
MapService(_mapRepository.remote(ownerId));
|
||||
|
||||
MapService favorite(String ownerId) =>
|
||||
MapService(_mapRepository.favorite(ownerId));
|
||||
|
||||
MapService locked(String ownerId) =>
|
||||
MapService(_mapRepository.locked(ownerId));
|
||||
}
|
||||
|
||||
class MapService {
|
||||
|
@ -20,20 +20,6 @@ class DriftMapRepository extends DriftDatabaseRepository {
|
||||
row.ownerId.equals(ownerId),
|
||||
);
|
||||
|
||||
MapQuery favorite(String ownerId) => _mapQueryBuilder(
|
||||
assetFilter: (row) =>
|
||||
row.deletedAt.isNull() &
|
||||
row.isFavorite.equals(true) &
|
||||
row.ownerId.equals(ownerId),
|
||||
);
|
||||
|
||||
MapQuery locked(String userId) => _mapQueryBuilder(
|
||||
assetFilter: (row) =>
|
||||
row.deletedAt.isNull() &
|
||||
row.visibility.equalsValue(AssetVisibility.locked) &
|
||||
row.ownerId.equals(userId),
|
||||
);
|
||||
|
||||
MapQuery _mapQueryBuilder({
|
||||
Expression<bool> Function($RemoteAssetEntityTable row)? assetFilter,
|
||||
Expression<bool> Function($RemoteExifEntityTable row)? exifFilter,
|
||||
|
Loading…
x
Reference in New Issue
Block a user