payload-plugin-newsletter 0.25.3 → 0.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/collections.cjs +4 -0
- package/dist/collections.cjs.map +1 -1
- package/dist/collections.js +4 -0
- package/dist/collections.js.map +1 -1
- package/dist/server.js +4 -0
- package/package.json +1 -1
package/dist/collections.js
CHANGED
|
@@ -2321,6 +2321,8 @@ var createBroadcastsCollection = (pluginConfig) => {
|
|
|
2321
2321
|
id: doc.id,
|
|
2322
2322
|
data: {
|
|
2323
2323
|
providerId: providerBroadcast.id,
|
|
2324
|
+
externalId: providerBroadcast.id,
|
|
2325
|
+
// Set externalId to match providerId for webhook lookup
|
|
2324
2326
|
providerData: providerBroadcast.providerData
|
|
2325
2327
|
},
|
|
2326
2328
|
req
|
|
@@ -2329,6 +2331,8 @@ var createBroadcastsCollection = (pluginConfig) => {
|
|
|
2329
2331
|
return {
|
|
2330
2332
|
...doc,
|
|
2331
2333
|
providerId: providerBroadcast.id,
|
|
2334
|
+
externalId: providerBroadcast.id,
|
|
2335
|
+
// Include externalId in return value
|
|
2332
2336
|
providerData: providerBroadcast.providerData
|
|
2333
2337
|
};
|
|
2334
2338
|
} catch (error) {
|