🐛 Removing where in rules controller admin
This commit is contained in:
parent
aad951f28a
commit
3bb9cf1bdf
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user