mirror of
https://github.com/sasjs/server.git
synced 2026-01-08 23:10:05 +00:00
test(user): added specs for admin action to create user
This commit is contained in:
@@ -16,8 +16,8 @@ userRouter.post('/', async (req, res) => {
|
||||
isadmin: savedUser.isadmin,
|
||||
isactive: savedUser.isactive
|
||||
})
|
||||
} catch (err) {
|
||||
res.status(400).send(err)
|
||||
} catch (err: any) {
|
||||
res.status(403).send(err.toString())
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user