build: refresh release artifacts after upload limits and survey access

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
mahmood
2026-11-26 13:42:18 +03:30
co-authored by Claude Sonnet 5.5
parent 5593cef462
commit 41399a33bb
191 changed files with 263 additions and 195 deletions
+7
View File
@@ -1808,6 +1808,13 @@ async function seedAccessControl() {
skipDuplicates: true
});
}
const allTypes = await prisma.userType.findMany({ select: { id: true } });
await prisma.permission.createMany({
data: allTypes.flatMap(
(ut) => ["product", "product.survey"].map((rid) => ({ rid, userTypeId: ut.id }))
),
skipDuplicates: true
});
}
function demoDataAllowed() {
if (process.env.SEED_DEMO_DATA?.trim() === "true") return true;