refactor(budget, common, day-notes, days): async DB-touching methods; transactions through UnitOfWork

This commit is contained in:
jubnl
2026-09-21 22:39:11 +02:00
parent 8bdc730b20
commit aa587e2fb6
67 changed files with 1082 additions and 1024 deletions
@@ -157,7 +157,7 @@ export class PluginMcpToolsService implements OnApplicationBootstrap, OnModuleDe
if (!pluginsEnabled()) return errorResult('Plugins are disabled on this server.');
// The plugins domain's first demo gate. The child has none of its own, and
// the ~40 isDemoUser checks elsewhere are per-handler, so it belongs here.
if (isDemoUserId(this.env, this.dbs, ctx.userId)) return demoDenied();
if (await isDemoUserId(this.env, this.dbs, ctx.userId)) return demoDenied();
try {
const raw = await this.hooks.callMcpTool(pluginId, { name, args: args ?? {} }, ctx.userId);