mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 18:53:29 +00:00
CLI device approvals - Use single deny endpoint (#9763)
This commit is contained in:
@@ -38,10 +38,16 @@ export class DenyCommand {
|
||||
}
|
||||
|
||||
try {
|
||||
await this.organizationAuthRequestService.denyPendingRequests(organizationId, id);
|
||||
await this.organizationAuthRequestService.denyPendingRequest(organizationId, id);
|
||||
return Response.success();
|
||||
} catch (e) {
|
||||
return Response.error(e);
|
||||
} catch (error) {
|
||||
if (error?.statusCode === 404) {
|
||||
return Response.error(
|
||||
"The request id is invalid or you do not have permission to update it.",
|
||||
);
|
||||
}
|
||||
|
||||
return Response.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user