明树Git Lab

Commit 19c43f4c authored by zfp1's avatar zfp1

1

parent d9437700
Pipeline #108455 passed with stage
in 5 seconds
...@@ -73,7 +73,7 @@ async function deleteRole(req, res, next) { ...@@ -73,7 +73,7 @@ async function deleteRole(req, res, next) {
} }
let urs = await DB.UserRole.count({where: {roleId: req.body.id}}); let urs = await DB.UserRole.count({where: {roleId: req.body.id}});
if(urs && urs > 0) { if(urs && urs > 0) {
res.sendError(errorMessage.databaseQueryError) return res.sendError(errorMessage.databaseQueryError)
} }
const ret = await DB.Role.update({ del: 1 }, { where: { id: req.body.id } }); const ret = await DB.Role.update({ del: 1 }, { where: { id: req.body.id } });
//删除用户角色绑定 //删除用户角色绑定
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment