mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 18:35:28 +03:00
update
This commit is contained in:
@@ -160,4 +160,15 @@ class AccountRepository {
|
||||
createdAt: DateTime.now(),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> update(model.Account account) async {
|
||||
await _db.updateAccount(AccountsCompanion(
|
||||
id: Value(account.id),
|
||||
name: Value(account.name),
|
||||
isMain: Value(account.isMain),
|
||||
sortOrder: Value(account.sortOrder),
|
||||
currency: Value(account.currency),
|
||||
createdAt: Value(account.createdAt),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user