Ver Fonte

chore: Update operator_config service to retrieve enabled operator configurations

x1ongzhu há 1 ano atrás
pai
commit
772488afa7
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      src/operator_config/operator_config.service.ts

+ 3 - 1
src/operator_config/operator_config.service.ts

@@ -21,7 +21,9 @@ export class OperaterConfigService {
     }
 
     async all() {
-        return await this.operatorConfigRepository.find()
+        return await this.operatorConfigRepository.findBy({
+            enabled: true
+        })
     }
 
     async random() {