Skip to content

Commit f04586a

Browse files
feat(fulfillment): add event type support to fulfillment events
1 parent 267b644 commit f04586a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/event/fulfillment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function FulfillmentController(context) {
115115
// Validate eventType
116116
if (!Object.values(FULFILLMENT_EVENT_TYPES).includes(eventType)) {
117117
log.error(`Invalid event type: ${eventType}`);
118-
return createResponse('', 400, {
118+
return createResponse({ message: 'Bad Request - Invalid event type' }, 400, {
119119
'x-error': 'Bad Request - Invalid event type',
120120
});
121121
}

0 commit comments

Comments
 (0)