Skip to content

Commit 051c7ea

Browse files
authored
fix: use transaction context for database update in start command (#42)
1 parent 99be19b commit 051c7ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/commands/start.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function start({
1515

1616
return db.transaction((tx) => {
1717
if (activeIntent) {
18-
db.update(intents)
18+
tx.update(intents)
1919
.set({
2020
status: "cancelled",
2121
})

0 commit comments

Comments
 (0)