Skip to content

Commit c0848fe

Browse files
committed
avoid crash in bun SHA-256
1 parent 97ace9c commit c0848fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export default async function run(args?: string[]): Promise<void> {
4747
}
4848

4949
process.chdir(values.root);
50+
const cachePath = await getQueryCachePath(".", values.database, strings, ...params);
5051
const config = await getDatabaseConfig(".", values.database);
5152
const database = await getDatabase(config);
5253
const results = await database.call(null, strings, ...params);
53-
const cachePath = await getQueryCachePath(".", values.database, strings, ...params);
5454
await mkdir(dirname(cachePath), {recursive: true});
5555
await writeFile(cachePath, JSON.stringify(results, replace));
5656
console.log(join(values.root, cachePath));

0 commit comments

Comments
 (0)