Skip to content

Commit

Permalink
Fix exported file name on windows (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-hauser authored Nov 10, 2023
1 parent e64d274 commit f863e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class LocalJsonStorage implements TransactionStorage {

const fileName = path.join(
LocalJsonStorage.folder,
`${new Date().toISOString()}.json`,
`${new Date().toISOString().replace(/:/g, "_")}.json`,
);

await fs.appendFile(fileName, JSON.stringify(txns), { encoding: "utf8" });
Expand Down

0 comments on commit f863e84

Please sign in to comment.