From af4c3e1e6897339eb8b61420007688d36c40fdab Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Thu, 19 Jan 2023 06:20:05 +1100 Subject: [PATCH] someone told me to make it shorter :epiccat: --- src/database.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database.ts b/src/database.ts index 3745f25..c3beed9 100644 --- a/src/database.ts +++ b/src/database.ts @@ -47,7 +47,7 @@ export class Database { const newJson = JSON.stringify(db._content); if (oldJson !== newJson || force){ writeFileSync(this._path, JSON.stringify(this._content, null, 2)); - if (this._saveNotifs) console.log(`[${moment().format('DD/MM/YY HH:mm:ss')}] ` + this._path + ' Database saved'); + if (this._saveNotifs) console.log(`[${moment().format('DD/MM/YY HH:mm:ss')}] ` + this._path + ' DB saved'); } return db; } @@ -61,7 +61,7 @@ export class Database { } disableSaveNotifs(){ this._saveNotifs = false; - console.log(this._path + ' "Database saved" Notifications disabled'); + console.log(this._path + ' "DB saved" Notifications disabled'); return this; }