-
Notifications
You must be signed in to change notification settings - Fork 12k
feat: add usernameInOrg field to webhook organizer payload for organization users #23246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4688365
19204ce
dfc5009
992631c
544e44b
fa5c0ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1208,7 +1208,6 @@ async function handler( | |
| const organizerOrganizationProfile = await prisma.profile.findFirst({ | ||
| where: { | ||
| userId: organizerUser.id, | ||
| username: dynamicUserList[0], | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Important change. For team events, organizerOrganizationProfile would always be null because dynamicUserList[0] would be teamSlug. This never caused any problem because, for team events we were using different way to determine bookingUrl. Now I need to use organizerOrganizationProfile to detemine the username correctly for team as well as user events.
|
||
| }, | ||
| }); | ||
|
|
||
|
|
@@ -1268,6 +1267,7 @@ async function handler( | |
| name: organizerUser.name || "Nameless", | ||
| email: organizerEmail, | ||
| username: organizerUser.username || undefined, | ||
| usernameInOrg: organizerOrganizationProfile?.username || undefined, | ||
| timeZone: organizerUser.timeZone, | ||
| language: { translate: tOrganizer, locale: organizerUser.locale ?? "en" }, | ||
| timeFormat: getTimeFormatStringFromUserTimeFormat(organizerUser.timeFormat), | ||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.