移除自动压缩db数据

This commit is contained in:
hanhh 2021-09-09 13:02:49 +08:00
parent b7a359714f
commit 35539a4ccc
4 changed files with 0 additions and 4 deletions

View File

@ -18,7 +18,6 @@ export default class AuthService {
this.authDb.loadDatabase((err) => { this.authDb.loadDatabase((err) => {
if (err) throw err; if (err) throw err;
}); });
this.authDb.persistence.setAutocompactionInterval(30000);
} }
public async login( public async login(

View File

@ -23,7 +23,6 @@ export default class CronService {
this.cronDb.loadDatabase((err) => { this.cronDb.loadDatabase((err) => {
if (err) throw err; if (err) throw err;
}); });
this.cronDb.persistence.setAutocompactionInterval(30000);
} }
public getDb(): DataStore { public getDb(): DataStore {

View File

@ -14,7 +14,6 @@ export default class EnvService {
this.envDb.loadDatabase((err) => { this.envDb.loadDatabase((err) => {
if (err) throw err; if (err) throw err;
}); });
this.envDb.persistence.setAutocompactionInterval(30000);
} }
public async create(payloads: Env[]): Promise<Env[]> { public async create(payloads: Env[]): Promise<Env[]> {

View File

@ -13,7 +13,6 @@ export default class OpenService {
this.appDb.loadDatabase((err) => { this.appDb.loadDatabase((err) => {
if (err) throw err; if (err) throw err;
}); });
this.appDb.persistence.setAutocompactionInterval(30000);
} }
public getDb(): DataStore { public getDb(): DataStore {