Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions apps/chat/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
.env*.local
4 changes: 4 additions & 0 deletions apps/chat/app/api/auth/calcom/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ interface CalcomMe {
email: string;
name: string;
timeZone: string;
organizationId: number | null;
organization?: { isPlatform: boolean; id: number };
}

export async function GET(request: Request) {
Expand Down Expand Up @@ -74,6 +76,8 @@ export async function GET(request: Request) {
calcomUsername: me.username,
calcomTimeZone: me.timeZone,
linkedAt: new Date().toISOString(),
calcomOrganizationId: me.organizationId ?? null,
calcomOrgIsPlatform: me.organization?.isPlatform ?? null,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this? Platform is deprecated

};

await linkUser(payload.teamId, payload.userId, linkedUser);
Expand Down
1,423 changes: 1,250 additions & 173 deletions apps/chat/lib/agent.ts

Large diffs are not rendered by default.

734 changes: 526 additions & 208 deletions apps/chat/lib/bot.ts

Large diffs are not rendered by default.

Loading
Loading