Browse Source

refactor: map resend-invite api

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1752/head
Pranav C 3 years ago
parent
commit
9516f3b018
  1. 7
      packages/nocodb/src/lib/noco/meta/api/projectUserApis.ts

7
packages/nocodb/src/lib/noco/meta/api/projectUserApis.ts

@ -216,8 +216,7 @@ async function projectUserDelete(req, res): Promise<any> {
}
// todo: map api
// @ts-ignore
async function resendInvite(req, res, next): Promise<any> {
async function projectUserInviteResend(req, res): Promise<any> {
const user = await User.get(req.params.userId);
if (!user) {
@ -297,4 +296,8 @@ router.delete(
'/api/v1/db/meta/projects/:projectId/users/:userId',
ncMetaAclMw(projectUserDelete, 'projectUserDelete')
);
router.post(
'/api/v1/db/meta/projects/:projectId/users/:userId/resend-invite',
ncMetaAclMw(projectUserInviteResend, 'projectUserInviteResend')
);
export default router;

Loading…
Cancel
Save