From 3a92fa896e30233848e8518cee005c21a49967f8 Mon Sep 17 00:00:00 2001 From: Tom graham Date: Wed, 8 Jan 2025 15:53:57 +1100 Subject: [PATCH] Fix formatting. --- mobile/lib/repositories/album.repository.dart | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/mobile/lib/repositories/album.repository.dart b/mobile/lib/repositories/album.repository.dart index 5016e575b8..adf83b33d4 100644 --- a/mobile/lib/repositories/album.repository.dart +++ b/mobile/lib/repositories/album.repository.dart @@ -34,15 +34,24 @@ class AlbumRepository extends DatabaseRepository implements IAlbumRepository { Future create(Album album) => txn(() => db.albums.store(album)); @override - Future getByName(String name, {bool? shared, bool? remote, bool? owner}) { + Future getByName( + String name, { + bool? shared, + bool? remote, + bool? owner, + }) { var query = db.albums.filter().nameEqualTo(name); if (shared != null) { query = query.sharedEqualTo(shared); } if (owner == true) { - query = query.owner((q) => q.isarIdEqualTo(Store.get(StoreKey.currentUser).isarId)); + query = query.owner( + (q) => q.isarIdEqualTo(Store.get(StoreKey.currentUser).isarId), + ); } else if (owner == false) { - query = query.owner((q) => q.not().isarIdEqualTo(Store.get(StoreKey.currentUser).isarId)); + query = query.owner( + (q) => q.not().isarIdEqualTo(Store.get(StoreKey.currentUser).isarId), + ); } if (remote == true) { query = query.localIdIsNull();