@porulle/plugin-channel-connector 0.48.0 → 0.48.1
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/dist/index.js +9 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/index.ts +9 -0
package/dist/index.js
CHANGED
|
@@ -184,6 +184,15 @@ export function channelConnectorPlugin(options = {}) {
|
|
|
184
184
|
counted: page.value.imported,
|
|
185
185
|
cursor: page.value.cursor ?? null,
|
|
186
186
|
...(page.value.warnings ? { warnings: page.value.warnings } : {}),
|
|
187
|
+
// UNCONDITIONAL, unlike `warnings` and `failures` beside it. The step's return value is
|
|
188
|
+
// the only per-batch seam a host application has — `walkBatches` keeps just `last` — so
|
|
189
|
+
// this is where a page gets its identity. Omitting it when empty would make "this batch
|
|
190
|
+
// committed nothing" and "this plugin build does not report entities" the same
|
|
191
|
+
// `undefined` at the seam, and a caller that collapses those enqueues nothing and
|
|
192
|
+
// reports success. The service's own return declares it unconditional for the same
|
|
193
|
+
// reason; dropping it here would have undone that one line later.
|
|
194
|
+
entityIds: page.value.entityIds,
|
|
195
|
+
...(page.value.failures ? { failures: page.value.failures } : {}),
|
|
187
196
|
};
|
|
188
197
|
});
|
|
189
198
|
const jobs = ctx.services.jobs;
|