mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
bad merge
This commit is contained in:
parent
8cacd79a6a
commit
53e9e325b9
@ -20,11 +20,11 @@ class RemoteAssetRepository extends DriftDatabaseRepository {
|
||||
.getSingleOrNull();
|
||||
}
|
||||
|
||||
Future<RemoteAsset?> get(String assetId) {
|
||||
final query = _db.remoteAssetEntity.select()
|
||||
..where((asset) => asset.id.equals(assetId));
|
||||
|
||||
return query.map((asset) => asset.toDto()).getSingleOrNull();
|
||||
Future<RemoteAsset?> getAsset(String id) {
|
||||
return _db.managers.remoteAssetEntity
|
||||
.filter((row) => row.id.equals(id))
|
||||
.map((row) => row.toDto())
|
||||
.getSingleOrNull();
|
||||
}
|
||||
|
||||
Future<void> updateFavorite(List<String> ids, bool isFavorite) {
|
||||
|
@ -142,8 +142,8 @@ class ActionService {
|
||||
Duration? initialOffset;
|
||||
String? initialTimeZone;
|
||||
if (remoteIds.length == 1) {
|
||||
final asset = await _remoteAssetRepository.get(remoteIds.first);
|
||||
final exif = await _remoteExifRepository.get(remoteIds.first);
|
||||
final asset = await _remoteAssetRepository.getAsset(remoteIds.first);
|
||||
final exif = await _remoteAssetRepository.getExif(remoteIds.first);
|
||||
|
||||
initialDateTime = asset?.localDateTime;
|
||||
initialTimeZone = exif?.timeZone;
|
||||
|
Loading…
x
Reference in New Issue
Block a user