adobe / commerce-integration-starter-kit

Adobe's integration starter kit uses Adobe Developer App Builder to improve real-time connection reliability and reduce the time-to-market for integrations between Adobe Commerce and other back-office systems, such as ERPs, CRMs, and PIMs.
Apache License 2.0
9 stars 2 forks source link

The actions/customer/external/updated/sender.js sendData method does not return a response #22

Closed rojoangel closed 5 days ago

rojoangel commented 5 days ago

Description

The actions/customer/external/updated/sender.js sendData method returns a response that can be checked by the actions/customer/external/updated/index.js main function to check the success or failure of the invocation.

    logger.debug(`Start sending data: ${JSON.stringify(transformed)}`)
    const result = await sendData(params, transformed, preProcessed)
    if (!result.success) {
      logger.error(`Send data failed: ${result.message}`)
      return actionErrorResponse(result.statusCode, result.message)
    }

Related Issue

https://github.com/adobe/commerce-integration-starter-kit/issues/21

Motivation and Context

This PR fixes a bug in the starter-kit that causes an error response when processing a be-observer.customer_update event

How Has This Been Tested?

The issue has been tested while working on a project based on the starter kit by sending a `be-observer.customer_update event and checking that it is successfully processed after deploying the change.

Screenshots (if appropriate):

N/A

Types of changes

Checklist: