diff --git a/back/services/dependence.ts b/back/services/dependence.ts index a2ee8bf2..06073470 100644 --- a/back/services/dependence.ts +++ b/back/services/dependence.ts @@ -107,7 +107,7 @@ export default class DependenceService { query: any = {}, ): Promise { let condition = query; - if (type && ['nodejs', 'python3', 'linux'].includes(type)) { + if (DependenceTypes[type]) { condition.type = DependenceTypes[type]; } else condition.type = [0, 1, 2]; if (status) {