From 3bb9cf1bdf21bf9612ab4696e2c80bcf16503cdc Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Fri, 29 Sep 2023 14:34:05 +0200 Subject: [PATCH] :bug: Removing where in rules controller admin --- src/app/api/admin/RulesController.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/app/api/admin/RulesController.ts b/src/app/api/admin/RulesController.ts index ca0e9d90..55526601 100644 --- a/src/app/api/admin/RulesController.ts +++ b/src/app/api/admin/RulesController.ts @@ -27,11 +27,6 @@ export default class RulesController extends ApiController { query = JSON.parse(req.query["q"] as string); } - query.where = { - ...query.where, - namespace: "notary", - }; - //call service to get prisma entity const rulesEntities = await this.rulesService.get(query); @@ -63,11 +58,6 @@ export default class RulesController extends ApiController { query = JSON.parse(req.query["q"] as string); } - query.where = { - ...query.where, - namespace: "notary", - }; - const ruleEntity = await this.rulesService.getByUid(uid, query); if (!ruleEntity) {