fix: currency for event types (#10792)

Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
alannncandJoe Au-Yeung authored and GitHub committed 2023-08-16 14:58:28 -07:00
1 parent f0dcfc83c8
commit 053da1ec32
3 files changed
+23 -3

No files matched your search

@@ -18,12 +18,14 @@ export const getEventTypeAppData = <T extends EventTypeAppsList>(
return allowDataGet
? {
...appMetadata,
// We should favor eventType's price and currency over appMetadata's price and currency
price: eventType.price || appMetadata.price,
currency: eventType.currency || appMetadata.currency,
// trackingId is legacy way to store value for TRACKING_ID. So, we need to support both.
TRACKING_ID: appMetadata.TRACKING_ID || appMetadata.trackingId,
}
: null;
}
// Backward compatibility for existing event types.
// TODO: After the new AppStore EventType App flow is stable, write a migration to migrate metadata to new format which will let us remove this compatibility code
// Migration isn't being done right now, to allow a revert if needed
+1 -1
View File
@@ -227,7 +227,7 @@ export default async function getEventTypeById({
app: {
enabled: true,
categories: {
hasSome: [AppCategories.conferencing, AppCategories.video],
hasSome: [AppCategories.conferencing, AppCategories.video, AppCategories.payment],
},
},
},