app edit page

This commit is contained in:
DASHU
2024-09-12 19:19:19 +08:00
parent 99d1c03d2a
commit 2c7629ab3f
7 changed files with 440 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ class AppDB {
static Future update(App o, {DatabaseExecutor? db}) async {
db = await DB.getDB(db);
await db.update("app", o.toJson(), where: "id = ?", whereArgs: [o.pubkey]);
await db.update("app", o.toJson(), where: "id = ?", whereArgs: [o.id]);
}
static Future<void> delete(int id, {DatabaseExecutor? db}) async {