proposed status, sets them to published, and records a confirmed STATUS_CHANGE audit action per product. Triggered by POST /admin/products/:id/confirm. Emits product.published with one { id, internal_note } entry per product.
Usage
Input
Ids of the products to publish. Every product must currently be in
proposed status.Actor id recorded on the audit trail entry.
Operator-only note stored on the audit change and included in the emitted event.
Result
Returns nothing; the products are updated in place.
Hooks
Runs after publishing with
{ product_ids, internal_note }.