refactor(llm-parse, mcp-shared, oauth, place-shadow, route-usage, storage, todo, trip-invite): async DB-touching methods; transactions through UnitOfWork

This commit is contained in:
jubnl
2026-09-21 23:27:01 +02:00
parent bb390a5407
commit e413308227
61 changed files with 977 additions and 925 deletions
+2 -2
View File
@@ -316,11 +316,11 @@ export class AdminController {
}
@Get('oauth-sessions')
listOAuthSessions() { return { sessions: this.oauth.listAllOAuthSessions() }; }
async listOAuthSessions() { return { sessions: await this.oauth.listAllOAuthSessions() }; }
@Delete('oauth-sessions/:id')
async revokeOAuthSession(@CurrentUser() user: User, @Param('id') id: string, @Req() req: Request) {
ok(this.oauth.adminRevokeOAuthSession(id));
ok(await this.oauth.adminRevokeOAuthSession(id));
await this.audit.writeAudit({ userId: user.id, action: 'admin.oauth_session_revoke', resource: String(id), ip: getClientIp(req) });
return { success: true };
}