We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ace9c commit c0848feCopy full SHA for c0848fe
bin/query.ts
@@ -47,10 +47,10 @@ export default async function run(args?: string[]): Promise<void> {
47
}
48
49
process.chdir(values.root);
50
+ const cachePath = await getQueryCachePath(".", values.database, strings, ...params);
51
const config = await getDatabaseConfig(".", values.database);
52
const database = await getDatabase(config);
53
const results = await database.call(null, strings, ...params);
- const cachePath = await getQueryCachePath(".", values.database, strings, ...params);
54
await mkdir(dirname(cachePath), {recursive: true});
55
await writeFile(cachePath, JSON.stringify(results, replace));
56
console.log(join(values.root, cachePath));
0 commit comments