Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -63,7 +63,8 @@ function open(dek: Buffer, envelope: string): string {
}
// ---- config -----------------------------------------------------------------
const DEMO_SLUGS = ["demo-starter-crm", "demo-pro-crm", "demo-business-crm"];
const MANAGED_STAGING_TENANT_SLUG = "demo-pro-crm";
const DEMO_SLUGS = ["demo-starter-crm", "demo-business-crm"];
const DRY = process.argv.includes("--dry-run");
const VERIFY = process.argv.includes("--verify");
@@ -99,6 +100,9 @@ function memberData(members: Member[]) {
}
async function seedTenant(t: { id: string; slug: string }) {
if (t.slug === MANAGED_STAGING_TENANT_SLUG) {
throw new Error(`${MANAGED_STAGING_TENANT_SLUG} is owned by the comprehensive normal-data seed and must not receive legacy demo rows`);
}
const tenantId = t.id;
const tus = await db.tenantUser.findMany({ where: { tenantId }, select: { userId: true } });
const users: any[] = await db.user.findMany({ where: { id: { in: tus.map((x: any) => x.userId) } }, select: { id: true, email: true, firstName: true, lastName: true } });