1
0
Fork 0
mirror of synced 2024-06-28 19:10:33 +12:00

Fix variable name in returned message when deleting a role

This commit is contained in:
Andrew Kingston 2020-12-04 08:28:35 +00:00
parent 922256790c
commit a8a8b60a55

View file

@ -50,6 +50,6 @@ exports.save = async function(ctx) {
exports.destroy = async function(ctx) {
const db = new CouchDB(ctx.user.appId)
await db.remove(ctx.params.roleId, ctx.params.rev)
ctx.message = `Role ${ctx.params.id} deleted successfully`
ctx.message = `Role ${ctx.params.roleId} deleted successfully`
ctx.status = 200
}