Skip to content

Commit

Permalink
db-tabulator: fix script path and param name
Browse files Browse the repository at this point in the history
!web-restart
  • Loading branch information
siddharthvp committed Apr 13, 2024
1 parent cee29ed commit 892053f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions db-tabulator/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function getQueriesFromText(text: string, title: string): Query[] {
return [];
}
return templates.map((template, idx) =>
new Query(template, title, idx + 1, !!template.getValue('js_preprocess')?.trim()));
new Query(template, title, idx + 1, !!template.getValue('preprocess_js')?.trim()));
}

export async function processQueries(allQueries: Record<string, Query[]>) {
Expand Down Expand Up @@ -388,8 +388,8 @@ export class Query {
return String(value);
});
}
if (this.getTemplateValue('js_preprocess')) {
const jsCode = stripOuterNowikis(this.getTemplateValue('js_preprocess'));
if (this.getTemplateValue('preprocess_js')) {
const jsCode = stripOuterNowikis(this.getTemplateValue('preprocess_js'));
try {
result = await applyJsPreprocessing(result, jsCode, this.toString(), this);
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion db-tabulator/preprocess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function processQueriesExternally(page: string) {
new Promise<void>((resolve, reject) => {
const { signal } = controller;
const child = fork(
'external-update.js',
__dirname + '/external-update.js',
[page].concat(argv.fake ? ['--fake'] : []),
{
execArgv: ['--no-node-snapshot'], // required for node 20+
Expand Down

0 comments on commit 892053f

Please sign in to comment.