KI-AGENT: Erstzugriff und Mandanten-Grunddaten für Selfhosting ergänzen

This commit is contained in:
2026-05-18 18:17:23 +02:00
parent f33ccf730a
commit 4d24e3a657
7 changed files with 521 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ import {
} from "../../db/schema";
import { generateRandomPassword, hashPassword } from "../utils/password";
import { sendMail } from "../utils/mailer";
import { ensureTenantBaseData } from "../modules/bootstrap.service";
export default async function adminRoutes(server: FastifyInstance) {
const deriveNameFromEmail = (email: string) => {
@@ -825,6 +826,7 @@ export default async function adminRoutes(server: FastifyInstance) {
});
await createTenantSeeds(createdTenant.id, currentUser.id);
await ensureTenantBaseData(server, createdTenant.id, currentUser.id);
return { tenant: createdTenant };
} catch (err) {