mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-08 18:09:08 +00:00
FEAT: reset, block and unblock all users
This commit is contained in:
@@ -362,7 +362,7 @@ export class AuthController {
|
||||
|
||||
try {
|
||||
const metadata = PackTheMetadata({
|
||||
access_token: user.access_token,
|
||||
customer_id: user.customer_id,
|
||||
language,
|
||||
});
|
||||
|
||||
@@ -398,7 +398,7 @@ export class AuthController {
|
||||
) {
|
||||
this.logger.info('unblockUsers');
|
||||
const metadata = PackTheMetadata({
|
||||
access_token: user.access_token,
|
||||
customer_id: user.customer_id,
|
||||
language,
|
||||
});
|
||||
|
||||
|
||||
@@ -200,8 +200,8 @@ export class AuthClientService implements OnModuleInit {
|
||||
|
||||
async unblockUsers(userIds: string[], metadata: Metadata): Promise<UserActionResponse> {
|
||||
this.logger.info('unblockUsers');
|
||||
return lastValueFrom(
|
||||
(this.authService as any).UnblockUser({ users: { userIds } }, metadata),
|
||||
return await lastValueFrom(
|
||||
this.authService.UnblockUser({ users: { userIds } }, metadata),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user