mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
space
This commit is contained in:
parent
2b653f8260
commit
d397380060
@ -49,7 +49,7 @@ export class Database {
|
|||||||
const newJson = JSON.stringify(db._content);
|
const newJson = JSON.stringify(db._content);
|
||||||
if (oldJson !== newJson || force){
|
if (oldJson !== newJson || force){
|
||||||
writeFileSync(this._path, JSON.stringify(this._content, null, 2));
|
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 + ' Database saved');
|
||||||
}
|
}
|
||||||
return db;
|
return db;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user