Skip to content

Commit

Permalink
fix: path in removeDatabase fn
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Jun 5, 2024
1 parent 1c729c6 commit 5277ea8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clients/apps/nodejs/test_basic_workflow2.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ const client_config = require('./client_config');

async function removeDatabase() {
try {
const clientConfig = client_config.load();
const { stdout, stderr } = await exec(`rm ./${clientConfig.databaseFile}`);
const clientConfig = client_config.load();
const absolutePath = path.resolve(clientConfig.databaseFile);
console.log(`Removing database file at: ${absolutePath}`);
const { stdout, stderr } = await exec(`rm ${absolutePath}`);
console.log('stdout:', stdout);
console.error('stderr:', stderr);
} catch (e) {
Expand Down

0 comments on commit 5277ea8

Please sign in to comment.