diff --git a/core/db.mjs b/core/db.mjs index 8ba0a3f..a92a27c 100644 --- a/core/db.mjs +++ b/core/db.mjs @@ -122,7 +122,9 @@ export default function GetDB(config, log, orgFilename = 'db.json') { return db.read() .then(function() { if (!isObject(db.data)) { - db.log.warn(`File ${fullpath} was empty or not a json object, clearing it.`) + if (fullpath !== 'in-memory') { + db.log.warn(`File ${fullpath} was empty or not a json object, clearing it.`) + } db.data = {} } defaults(db.data, { core: { version: 1 } })