summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Goetz <dev@leogtz.de>2025-11-13 10:19:06 +0100
committerLeo Goetz <dev@leogtz.de>2025-11-13 10:19:06 +0100
commit487883c2b6b3ef71464287c9e26436e0b637d924 (patch)
treef9b13970ac0b09e64c9bfa5c7ad4d08ab38e7817
parent51cead8d816d16cc025e4a189040bca7c0dc3729 (diff)
added commentHEADmaster
-rw-r--r--src/db.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/db.js b/src/db.js
index 087686a..d9c3f42 100644
--- a/src/db.js
+++ b/src/db.js
@@ -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 () => {