Skip to content

Commit

Permalink
fix: databaseFile variable
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Jun 4, 2024
1 parent 7bda298 commit a54ccd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clients/apps/nodejs/test_basic_workflow2.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ const { CoinStatus } = require('mercurynodejslib/coin_enum');
const client_config = require('./client_config');

async function removeDatabase() {
try {
const { stdout, stderr } = await exec(`rm ../../apps/nodejs/${client_config.databaseFile}`);
try {
const clientConfig = client_config.load();
const { stdout, stderr } = await exec(`rm ../../apps/nodejs/${clientConfig.databaseFile}`);
console.log('stdout:', stdout);
console.error('stderr:', stderr);
} catch (e) {
Expand Down

0 comments on commit a54ccd1

Please sign in to comment.