From 487883c2b6b3ef71464287c9e26436e0b637d924 Mon Sep 17 00:00:00 2001 From: Leo Goetz Date: Thu, 13 Nov 2025 10:19:06 +0100 Subject: added comment --- src/db.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/db.js') 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 () => { -- cgit v1.3