Browse Source

Merge pull request #2371 from nocodb/fix/2370-sync-user-exist

fix(sync): handle existing user on project
pull/2368/head
navi 2 years ago committed by GitHub
parent
commit
297c17f131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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