KI-AGENT: Erstzugriff und Mandanten-Grunddaten für Selfhosting ergänzen
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user