From 8855bd3a89aaee4ecaa4ae39423e8efce6403e2b Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@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; }