server: fixes bug

This commit is contained in:
Tiago
2025-05-20 19:48:59 +01:00
parent e4f1d573a8
commit f1092592af
+1 -1
View File
@@ -210,7 +210,7 @@ class Cap extends EventEmitter {
await this._waitForTokensList();
if (this.config.state.tokensList[key]) {
if (conf && conf.keepToken && !this.config.noFSState) {
if (conf && !conf.keepToken && !this.config.noFSState) {
delete this.config.state.tokensList[key];
await fs.writeFile(