Skip to content

Commit

Permalink
not all users have azureidir, don't error if 404
Browse files Browse the repository at this point in the history
  • Loading branch information
mgtennant committed Nov 6, 2024
1 parent 8684a43 commit 66cf2a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/admin/admin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ export class AdminService {
if (err?.response?.data?.message?.includes('not associated')) {
// ignore error if user is not associated with the role
} else {
return { error: 'Failed to remove idir_admin role' };
console.log('Failed to remove azureidir idir_admin role - not displaying an error');
return { error: null };
}
}
return { error: null };
Expand Down

0 comments on commit 66cf2a9

Please sign in to comment.