Skip to content

Commit 797b89d

Browse files
authored
Merge branch 'main' into lewis/comp-onboarding-calendar
2 parents d2cf23f + d05bc9c commit 797b89d

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

apps/app/src/components/animated-layout.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ export function AnimatedLayout({
1111
sidebar,
1212
isCollapsed,
1313
}: AnimatedLayoutProps) {
14-
return (
15-
<div className="flex w-full overflow-hidden">
16-
<div
17-
className={cn(
18-
"flex-shrink-0 border-r bg-background duration-300 ease-in-out hidden md:block",
19-
isCollapsed ? "w-[80px]" : "w-[240px]",
20-
)}
21-
>
22-
{sidebar}
23-
</div>
24-
<div className="flex-1 overflow-auto bg-backgroundSoft">
25-
{children}
26-
</div>
27-
</div>
28-
);
14+
return (
15+
<div className="flex w-full h-screen overflow-hidden">
16+
<div
17+
className={cn(
18+
"flex-shrink-0 h-full overflow-y-auto border-r bg-background duration-300 ease-in-out hidden md:block",
19+
isCollapsed ? "w-[80px]" : "w-[240px]",
20+
)}
21+
>
22+
{sidebar}
23+
</div>
24+
<div className="flex-1 overflow-y-auto bg-backgroundSoft">
25+
{children}
26+
</div>
27+
</div>
28+
);
2929
}

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)