include rescheduleUid webhook payload (#1551) (#1584)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
buschco 2022-02-19 01:09:07 +01:00 committed by GitHub
parent bced10eab1
commit b9dd90b998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ const sendPayload = async (
subscriberUrl: string,
data: CalendarEvent & {
metadata?: { [key: string]: string };
rescheduleUid?: string;
},
template?: string | null
) => {

View File

@ -608,6 +608,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
sub.subscriberUrl,
{
...evt,
rescheduleUid,
metadata: reqBody.metadata,
},
sub.payloadTemplate