Skip to content

Commit 61251cf

Browse files
authored
Merge pull request #19 from arran4/codex/add-await-before-db.update-in-updateproject
Fix async update project handling
2 parents c0708bb + 6c1a087 commit 61251cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/database.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ class DB {
127127
if (authMode != null) {
128128
values["authMode"] = authMode;
129129
}
130-
db.update(Project.name, values, where: "id=?", whereArgs: <Object?>[id]);
131-
return getProject(id);
130+
await db.update(Project.name, values, where: "id=?", whereArgs: <Object?>[id]);
131+
return await getProject(id);
132132
}
133133
}
134134

0 commit comments

Comments
 (0)