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:
co-authored by
Claude Sonnet 5.5
parent
5593cef462
commit
41399a33bb
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user