Browse Source

fix(nocodb): projectUserService.userInvite

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
7c4a2b7f9a
  1. 15
      packages/nocodb/src/lib/controllers/projectUser.ctl.ts

15
packages/nocodb/src/lib/controllers/projectUser.ctl.ts

@ -13,14 +13,13 @@ async function userList(req, res) {
} }
async function userInvite(req, res): Promise<any> { async function userInvite(req, res): Promise<any> {
res.json(
await projectUserService.userInvite({ await projectUserService.userInvite({
projectId: req.params.projectId, projectId: req.params.projectId,
projectUser: req.body, projectUser: req.body,
req, req,
}) })
res.json({ );
msg: 'The user has been invited successfully',
});
} }
async function projectUserUpdate(req, res): Promise<any> { async function projectUserUpdate(req, res): Promise<any> {
@ -29,7 +28,7 @@ async function projectUserUpdate(req, res): Promise<any> {
projectId: req.params.projectId, projectId: req.params.projectId,
userId: req.params.userId, userId: req.params.userId,
req, req,
}) });
res.json({ res.json({
msg: 'The user has been updated successfully', msg: 'The user has been updated successfully',
}); });
@ -52,12 +51,10 @@ async function projectUserInviteResend(req, res): Promise<any> {
userId: req.params.userId, userId: req.params.userId,
projectUser: req.body, projectUser: req.body,
req, req,
}) });
;
res.json({ res.json({
msg: 'The invitation has been sent to the user' msg: 'The invitation has been sent to the user',
}) });
} }
const router = Router({ mergeParams: true }); const router = Router({ mergeParams: true });

Loading…
Cancel
Save