File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,24 +110,23 @@ export abstract class QueryRunner {
110110 generateEvalLog : boolean ,
111111 additionalPacks : string [ ] ,
112112 queryStorageDir : string ,
113- id : string | undefined ,
113+ id = ` ${ basename ( query . queryPath ) } - ${ nanoid ( ) } ` ,
114114 templates : Record < string , string > | undefined ,
115115 ) : CoreQueryRun {
116- const actualId = id ?? `${ basename ( query . queryPath ) } -${ nanoid ( ) } ` ;
117- const outputDir = new QueryOutputDir ( join ( queryStorageDir , actualId ) ) ;
116+ const outputDir = new QueryOutputDir ( join ( queryStorageDir , id ) ) ;
118117
119118 return {
120119 queryTarget : query ,
121120 dbPath,
122- id : actualId ,
121+ id,
123122 outputDir,
124123 evaluate : async (
125124 progress : ProgressCallback ,
126125 token : CancellationToken ,
127126 logger : BaseLogger ,
128127 ) : Promise < CoreCompletedQuery > => {
129128 return {
130- id : actualId ,
129+ id,
131130 outputDir,
132131 dbPath,
133132 queryTarget : query ,
You can’t perform that action at this time.
0 commit comments