diff options
| author | Leo Goetz <dev@leogtz.de> | 2025-11-13 10:19:06 +0100 |
|---|---|---|
| committer | Leo Goetz <dev@leogtz.de> | 2025-11-13 10:19:06 +0100 |
| commit | 487883c2b6b3ef71464287c9e26436e0b637d924 (patch) | |
| tree | f9b13970ac0b09e64c9bfa5c7ad4d08ab38e7817 /src | |
| parent | 51cead8d816d16cc025e4a189040bca7c0dc3729 (diff) | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/db.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,5 +1,7 @@ import fs from "node:fs/promises"; +// new URL is used to resolve the relative Filepath even if +// CLI is being run in a different location on the system const DB_PATH = new URL("../db.json", import.meta.url).pathname; export const getDB = async () => { |
