fix document 500 error and fix users tabel for bot

This commit is contained in:
lendry
2026-06-26 10:32:04 +03:00
parent ead3155ad8
commit d5e6b58955
17 changed files with 396 additions and 67 deletions

View File

@@ -142,6 +142,12 @@ export class AuthGrpcController {
return { users };
}
@GrpcMethod('AdminService', 'ListBotAccounts')
async listBotAccounts(command: { search?: string }) {
const users = await this.admin.listBotAccounts(command.search);
return { users };
}
@GrpcMethod('AdminService', 'SuspendUser')
suspendUser(command: { userId: string }) {
return this.admin.suspendUser(command.userId);
@@ -461,6 +467,11 @@ export class AuthGrpcController {
return this.totp.disable(command.userId, command.code);
}
@GrpcMethod('SecurityService', 'AdminDisableTotp')
adminDisableTotp(command: { actorUserId: string; userId: string }) {
return this.totp.adminDisable(command.actorUserId, command.userId);
}
@GrpcMethod('SecurityService', 'SetupPin')
setupPin(command: { userId: string; pin: string }) {
return this.pin.setupPin(command.userId, command.pin);