修复env启用禁用

This commit is contained in:
hanhh committed 2021-06-21 17:22:23 +08:00
1 parent 49ab1ad93a
commit 173b87a7b1
3 files changed
+3 -6

No files matched your search

+1 -1
View File
@@ -183,7 +183,7 @@ export default class EnvService {
return new Promise((resolve: any) => {
this.cronDb.update(
{ _id: { $in: ids } },
{ $set: { status: EnvStatus.noacquired } },
{ $set: { status: EnvStatus.normal } },
{ multi: true },
async (err, num) => {
await this.set_envs();