@@ -71,8 +71,7 @@ export class PowerSyncSQLitePreparedQuery<
7171 const params = fillPlaceholders ( this . query . params , placeholderValues ?? { } ) ;
7272 this . logger . logQuery ( this . query . sql , params ) ;
7373 return this . useContext ( async ( ctx ) => {
74- const rs = await ctx . execute ( this . query . sql , params ) ;
75- return rs ;
74+ return await ctx . execute ( this . query . sql , params ) ;
7675 } ) ;
7776 }
7877
@@ -81,7 +80,7 @@ export class PowerSyncSQLitePreparedQuery<
8180 if ( ! fields && ! customResultMapper ) {
8281 const params = fillPlaceholders ( query . params , placeholderValues ?? { } ) ;
8382 logger . logQuery ( query . sql , params ) ;
84- return await this . contextProvider . useReadContext ( async ( ctx ) => {
83+ return await this . useContext ( async ( ctx ) => {
8584 return await ctx . getAll ( this . query . sql , params ) ;
8685 } ) ;
8786 }
@@ -101,7 +100,7 @@ export class PowerSyncSQLitePreparedQuery<
101100 const { fields, customResultMapper } = this ;
102101 const joinsNotNullableMap = ( this as any ) . joinsNotNullableMap ;
103102 if ( ! fields && ! customResultMapper ) {
104- return this . contextProvider . useReadContext ( async ( ctx ) => {
103+ return this . useContext ( async ( ctx ) => {
105104 return await ctx . get ( this . query . sql , params ) ;
106105 } ) ;
107106 }
0 commit comments