Skip to content

Commit

Permalink
Fix async tasks race condition for selecting task to be executed
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
otaviojacobi committed Oct 27, 2024
1 parent 211dbf8 commit e05b77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class Worker {
return;
}
await sbvrUtils.db.transaction(async (tx) => {
const result = await sbvrUtils.db.executeSql(
const result = await tx.executeSql(
`SELECT ${selectColumns}
FROM task AS t
WHERE
Expand Down

0 comments on commit e05b77c

Please sign in to comment.