@dasmeta/event-manager-platform-helper
Advanced tools
Comparing version
{ | ||
"name": "@dasmeta/event-manager-platform-helper", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Event platform helper", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -43,3 +43,3 @@ const { EventSubscriptionApi } = require("@dasmeta/event-manager-node-api"); | ||
if ((await api.eventSubscriptionsHasReachedMaxAttemptsGet(topic, subscription, eventId, eventInfo.maxAttempts))) { | ||
await api.eventSubscriptionsRecordFailurePost({ ...eventInfo, error }); | ||
await api.eventSubscriptionsRecordFailurePost({ ...eventInfo, error: { stack: error.stack, message: error.message } }); | ||
throw error; | ||
@@ -49,3 +49,3 @@ } | ||
} else { | ||
await api.eventSubscriptionsRecordFailurePost({ ...eventInfo, error }); | ||
await api.eventSubscriptionsRecordFailurePost({ ...eventInfo, error: { stack: error.stack, message: error.message } }); | ||
throw error; | ||
@@ -52,0 +52,0 @@ } |
19427
0.5%