🐛 Removing where in rules controller admin

This commit is contained in:
Maxime Lalo 2023-09-29 14:34:05 +02:00
parent aad951f28a
commit 3bb9cf1bdf

View File

@ -27,11 +27,6 @@ export default class RulesController extends ApiController {
query = JSON.parse(req.query["q"] as string); query = JSON.parse(req.query["q"] as string);
} }
query.where = {
...query.where,
namespace: "notary",
};
//call service to get prisma entity //call service to get prisma entity
const rulesEntities = await this.rulesService.get(query); 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 = JSON.parse(req.query["q"] as string);
} }
query.where = {
...query.where,
namespace: "notary",
};
const ruleEntity = await this.rulesService.getByUid(uid, query); const ruleEntity = await this.rulesService.getByUid(uid, query);
if (!ruleEntity) { if (!ruleEntity) {