Skip to content

Commit ccc1e7f

Browse files
authored
Merge branch 'main' into codex/update-layout-with-viewport-height-and-scrolling-behavior
2 parents 82eb566 + 9f81e89 commit ccc1e7f

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

apps/app/src/utils/auth.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ export const auth = betterAuth({
4141
"https://dev.trycomp.ai",
4242
],
4343
advanced: {
44-
database: {
45-
// This will enable us to fall back to DB for ID generation.
46-
// It's important so we can use customs ID's specified in Prisma Schema.
47-
generateId: false,
48-
},
44+
database: {
45+
// This will enable us to fall back to DB for ID generation.
46+
// It's important so we can use custom IDs specified in Prisma Schema.
47+
generateId: false,
48+
},
4949
},
5050
secret: process.env.AUTH_SECRET!,
5151
plugins: [

apps/framework-editor/app/lib/auth.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ export const auth = betterAuth({
2323
provider: "postgresql",
2424
}),
2525
advanced: {
26-
database: {
27-
// This will enable us to fall back to DB for ID generation.
28-
// It's important so we can use customs ID's specified in Prisma Schema.
29-
generateId: false,
30-
},
26+
database: {
27+
// This will enable us to fall back to DB for ID generation.
28+
// It's important so we can use custom IDs specified in Prisma Schema.
29+
generateId: false,
30+
},
3131
},
3232
secret: process.env.AUTH_SECRET!,
3333
plugins: [nextCookies()],

apps/portal/src/app/lib/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const auth = betterAuth({
1414
}),
1515
advanced: {
1616
// This will enable us to fall back to DB for ID generation.
17-
// It's important so we can use customs ID's specified in Prisma Schema.
17+
// It's important so we can use custom IDs specified in Prisma Schema.
1818
generateId: false,
1919
},
2020
secret: process.env.AUTH_SECRET!,

packages/analytics/src/server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function track(distinctId: string, eventName: string, properties?:
2929
event: eventName,
3030
properties,
3131
});
32-
await serverInstance.shutdown();
32+
await serverInstance.flush();
3333
}
3434

3535
export async function identify(distinctId: string, properties?: Properties) {
@@ -39,13 +39,13 @@ export async function identify(distinctId: string, properties?: Properties) {
3939
distinctId,
4040
properties,
4141
});
42-
await serverInstance.shutdown();
42+
await serverInstance.flush();
4343
}
4444

4545
export async function getFeatureFlags(distinctId: string) {
4646
if (!serverInstance) return {};
4747

4848
const flags = await serverInstance.getAllFlags(distinctId);
49-
await serverInstance.shutdown();
49+
await serverInstance.flush();
5050
return flags;
51-
}
51+
}

0 commit comments

Comments
 (0)