mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
remove locked and favorite
This commit is contained in:
parent
dc807777d6
commit
7f9bc092ac
2 changed files with 0 additions and 20 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue