File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/drizzle-driver/src/sqlite Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,12 @@ export class PowerSyncSQLitePreparedQuery<
5454 }
5555
5656 const rows = ( await this . values ( placeholderValues ) ) as unknown [ ] [ ] ;
57- const plain = rows . map ( ( row ) => Object . values ( row ) ) ;
57+ const valueRows = rows . map ( ( row ) => Object . values ( row ) ) ;
5858 if ( customResultMapper ) {
59- const mapped = customResultMapper ( plain ) as T [ 'all' ] ;
59+ const mapped = customResultMapper ( valueRows ) as T [ 'all' ] ;
6060 return mapped ;
6161 }
62- return plain . map ( ( row ) => mapResultRow ( fields ! , row , ( this as any ) . joinsNotNullableMap ) ) ;
62+ return valueRows . map ( ( row ) => mapResultRow ( fields ! , row , ( this as any ) . joinsNotNullableMap ) ) ;
6363 }
6464
6565 async get ( placeholderValues ?: Record < string , unknown > ) : Promise < T [ 'get' ] > {
@@ -80,8 +80,8 @@ export class PowerSyncSQLitePreparedQuery<
8080 }
8181
8282 if ( customResultMapper ) {
83- const plain = rows . map ( ( row ) => Object . values ( row ) ) ;
84- return customResultMapper ( plain ) as T [ 'get' ] ;
83+ const valueRows = rows . map ( ( row ) => Object . values ( row ) ) ;
84+ return customResultMapper ( valueRows ) as T [ 'get' ] ;
8585 }
8686
8787 return mapResultRow ( fields ! , Object . values ( row ) , joinsNotNullableMap ) ;
You can’t perform that action at this time.
0 commit comments