refactor(mobile): repositories for album service (#12701)

* refactor(mobile): repositories for album service

* review feedback, first service unit test
This commit is contained in:
Fynn Petersen-Frey 2024-09-16 22:26:14 +02:00 committed by GitHub
parent edb085691a
commit 4a1ff6abce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 347 additions and 71 deletions

View file

@ -164,12 +164,13 @@ class Album {
}
extension AssetsHelper on IsarCollection<Album> {
Future<void> store(Album a) async {
Future<Album> store(Album a) async {
await put(a);
await a.owner.save();
await a.thumbnail.save();
await a.sharedUsers.save();
await a.assets.save();
return a;
}
}