Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
N2D4 committed Dec 26, 2025
commit f48868e6ff50aaac4be7973c7a6b25354c2b6ebc
16 changes: 8 additions & 8 deletions apps/backend/prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export async function seed() {
});

await ensurePermissionDefinition(
globalPrismaClientClient,
globalPrismaClient,
internalPrisma,
{
id: "team_member",
Expand All @@ -225,7 +225,7 @@ export async function seed() {
);
const updatedInternalTenancy = await getSoleTenancyFromProjectBranch("internal", DEFAULT_BRANCH_ID);
await ensurePermissionDefinition(
globalPrismaClientClient,
globalPrismaClient,
internalPrisma,
{
id: "team_admin",
Expand Down Expand Up @@ -263,7 +263,7 @@ export async function seed() {
const shouldSeedDummyProject = process.env.STACK_SEED_ENABLE_DUMMY_PROJECT === 'true';
if (shouldSeedDummyProject) {
await seedDummyProject({
globalPrismaClientClient,
globalPrismaClient,
ownerTeamId: internalTeamId,
oauthProviderIds,
});
Expand Down Expand Up @@ -492,7 +492,7 @@ export async function seed() {
}

type DummyProjectSeedOptions = {
globalPrismaClientClient: PrismaClient,
globalPrismaClient: PrismaClient,
ownerTeamId: string,
oauthProviderIds: string[],
};
Expand Down Expand Up @@ -997,7 +997,7 @@ async function seedDummyProject(options: DummyProjectSeedOptions) {
},
});

await options.globalPrismaClientClient.project.update({
await options.globalPrismaClient.project.update({
where: {
id: DUMMY_PROJECT_ID,
},
Expand Down Expand Up @@ -1499,7 +1499,7 @@ async function seedDummyEmails(options: EmailSeedOptions) {
? { type: 'user-primary-email', userId }
: { type: 'custom-emails', emails: ['unknown@dummy.dev'] };

await globalPrismaClientClient.emailOutbox.upsert({
await globalPrismaClient.emailOutbox.upsert({
where: {
tenancyId_id: {
tenancyId,
Expand Down Expand Up @@ -1603,7 +1603,7 @@ async function seedDummySessionActivityEvents(options: SessionActivityEventSeedO

// Create EventIpInfo entry with a proper UUID
const ipInfoId = generateUuid(); // TODO: This should be a deterministic UUID so we don't keep recreating the session info
await globalPrismaClientClient.eventIpInfo.upsert({
await globalPrismaClient.eventIpInfo.upsert({
where: { id: ipInfoId },
update: {
ip: ipAddress,
Expand Down Expand Up @@ -1631,7 +1631,7 @@ async function seedDummySessionActivityEvents(options: SessionActivityEventSeedO

// Create the Event entry with a proper UUID
const eventId = generateUuid();
await globalPrismaClientClient.event.upsert({
await globalPrismaClient.event.upsert({
where: { id: eventId },
update: {
systemEventTypeIds: ['$session-activity', '$user-activity', '$project-activity', '$project'],
Expand Down