Skip to content

Commit f48868e

Browse files
committed
fix
1 parent c1d4626 commit f48868e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

apps/backend/prisma/seed.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export async function seed() {
211211
});
212212

213213
await ensurePermissionDefinition(
214-
globalPrismaClientClient,
214+
globalPrismaClient,
215215
internalPrisma,
216216
{
217217
id: "team_member",
@@ -225,7 +225,7 @@ export async function seed() {
225225
);
226226
const updatedInternalTenancy = await getSoleTenancyFromProjectBranch("internal", DEFAULT_BRANCH_ID);
227227
await ensurePermissionDefinition(
228-
globalPrismaClientClient,
228+
globalPrismaClient,
229229
internalPrisma,
230230
{
231231
id: "team_admin",
@@ -263,7 +263,7 @@ export async function seed() {
263263
const shouldSeedDummyProject = process.env.STACK_SEED_ENABLE_DUMMY_PROJECT === 'true';
264264
if (shouldSeedDummyProject) {
265265
await seedDummyProject({
266-
globalPrismaClientClient,
266+
globalPrismaClient,
267267
ownerTeamId: internalTeamId,
268268
oauthProviderIds,
269269
});
@@ -492,7 +492,7 @@ export async function seed() {
492492
}
493493

494494
type DummyProjectSeedOptions = {
495-
globalPrismaClientClient: PrismaClient,
495+
globalPrismaClient: PrismaClient,
496496
ownerTeamId: string,
497497
oauthProviderIds: string[],
498498
};
@@ -997,7 +997,7 @@ async function seedDummyProject(options: DummyProjectSeedOptions) {
997997
},
998998
});
999999

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

1502-
await globalPrismaClientClient.emailOutbox.upsert({
1502+
await globalPrismaClient.emailOutbox.upsert({
15031503
where: {
15041504
tenancyId_id: {
15051505
tenancyId,
@@ -1603,7 +1603,7 @@ async function seedDummySessionActivityEvents(options: SessionActivityEventSeedO
16031603

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

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

0 commit comments

Comments
 (0)