File tree 2 files changed +9
-19
lines changed
2 files changed +9
-19
lines changed Original file line number Diff line number Diff line change @@ -160,27 +160,16 @@ export class ZenStackQueryExecutor<
160
160
161
161
private async proceedQuery ( query : RootOperationNode , queryId : QueryId ) {
162
162
// run built-in transformers
163
- console . log ( 'Name mapping' , this . compileQuery ( query ) . sql ) ;
164
163
const finalQuery = this . nameMapper . transformNode ( query ) ;
165
- // const finalQuery = query;
166
164
167
165
const compiled = this . compileQuery ( finalQuery ) ;
168
- try {
169
- return await ( this . driver . txConnection
170
- ? super
171
- . withConnectionProvider (
172
- new SingleConnectionProvider ( this . driver . txConnection )
173
- )
174
- . executeQuery < any > ( compiled , queryId )
175
- : super . executeQuery < any > ( compiled , queryId ) ) ;
176
- } catch ( err ) {
177
- console . error (
178
- `Failed to execute query: ${
179
- this . compileQuery ( finalQuery ) . sql
180
- } \nOriginal query:\n${ this . compileQuery ( query ) . sql } `
181
- ) ;
182
- throw err ;
183
- }
166
+ return this . driver . txConnection
167
+ ? super
168
+ . withConnectionProvider (
169
+ new SingleConnectionProvider ( this . driver . txConnection )
170
+ )
171
+ . executeQuery < any > ( compiled , queryId )
172
+ : super . executeQuery < any > ( compiled , queryId ) ;
184
173
}
185
174
186
175
private isMutationNode ( queryNode : RootOperationNode ) {
Original file line number Diff line number Diff line change 1
1
import { defineConfig , mergeConfig } from 'vitest/config' ;
2
2
import base from '../../vitest.base.config' ;
3
+ import path from 'node:path' ;
3
4
4
5
export default mergeConfig (
5
6
base ,
6
7
defineConfig ( {
7
8
test : {
8
- setupFiles : [ './test/vitest-ext.ts' ] ,
9
+ setupFiles : [ path . resolve ( __dirname , './test/vitest-ext.ts' ) ] ,
9
10
} ,
10
11
} )
11
12
) ;
You can’t perform that action at this time.
0 commit comments