fix gitignore

This commit is contained in:
The Foxon 2023-07-01 01:34:16 +12:00
parent f05f7c8f82
commit 44999b70a0
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.env
dist
node_modules
storage/*

View File

@ -34,7 +34,7 @@ export default class ConfigManager {
fs.writeFileSync(this.configPath, JSON.stringify(r))
}
load() {
const r = { userManager: this.userManager }
const r = { userManager: this.userManager, serverInfo: this.serverInfo, messages: this.messages }
if (!fs.existsSync(this.configPath)) {
fs.writeFileSync(this.configPath, JSON.stringify(r))
}