Browse Source

fix(sync): handle existing user on project

Signed-off-by: mertmit <mertmit99@gmail.com>
feat/0523-export-schema
mertmit 2 years ago committed by Raju Udava
parent
commit
5dc233ab16
  1. 9
      packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

9
packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

@ -1628,10 +1628,11 @@ export default async (
);
const _perfStart = recordPerfStart();
insertJobs.push(
api.auth.projectUserAdd(ncCreatedProjectSchema.id, {
email: value.email,
roles: userRoles[value.permissionLevel]
})
api.auth.projectUserAdd(ncCreatedProjectSchema.id, {
email: value.email,
roles: userRoles[value.permissionLevel]
})
.catch(e => e.response?.data?.msg ? logBasic(`NOTICE: ${e.response.data.msg}`) : console.log(e))
);
recordPerfStats(_perfStart, 'auth.projectUserAdd');
}

Loading…
Cancel
Save