deleted throwing error
MODIFY
src/async-task/tasks/ImportAsyncTask.ts
src/async-task/tasks/ImportAsyncTask.ts
@@ -26,13 +26,10 @@ export default class ImportAsyncTask extends AbstractAsyncTask {
// Existing Users
let user = await UserStorage.getUserByEmail(tenant.id, importedUser.email);
if (user) {
- // Check tag is already in use
+ // Check user is already in use
if (!user.issuer) {
throw new Error('User is not local to the organization');
}
- if (user.status !== UserStatus.PENDING) {
- throw new Error('User account is already in use');
- }
// Update it
user.name = importedUser.name;
user.firstName = importedUser.firstName;

deleted throwing error