Skip to content

Commit 67ab053

Browse files
cleanup
1 parent 41964ec commit 67ab053

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/common/src/client/AbstractPowerSyncDatabase.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,7 @@ export abstract class AbstractPowerSyncDatabase extends BaseObserver<PowerSyncDB
671671
* @returns The query result as an object with structured key-value pairs
672672
*/
673673
async execute(sql: string, parameters?: any[]) {
674-
await this.waitForReady();
675-
return this.database.execute(sql, parameters);
674+
return this.writeLock((tx) => tx.execute(sql, parameters));
676675
}
677676

678677
/**

0 commit comments

Comments
 (0)