Add bulk device approval to OrganizationAuthRequestService

This commit is contained in:
Rui Tome 2024-05-03 15:59:53 +01:00
parent 30ef206621
commit 8547b6626f
No known key found for this signature in database
GPG Key ID: 526239D96A8EC066
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,13 @@ export class OrganizationAuthRequestService {
await this.organizationAuthRequestApiService.denyPendingRequests(organizationId, ...requestIds);
}
async approvePendingRequests(organizationId: string, ...requestIds: string[]): Promise<void> {
await this.organizationAuthRequestApiService.approvePendingRequests(
organizationId,
...requestIds,
);
}
async approvePendingRequest(organizationId: string, authRequest: PendingAuthRequestView) {
const details = await this.organizationUserService.getOrganizationUserResetPasswordDetails(
organizationId,