diff --git a/lib/archive.js b/lib/archive.js index 0894733..56e8f3e 100644 --- a/lib/archive.js +++ b/lib/archive.js @@ -119,6 +119,7 @@ module.exports.syncElevmappa = async blobContent => { } logger('info', ['archive', 'syncElevmappa', 'calling skip dsf']) const res = await callArchive(payload, e18JobId, blobContent.flow.syncElevmappaTaskId, 'SyncElevmappe') + if (!res) throw new Error('404 - Resource not found') if (typeof res === 'object') { blobContent.flow.syncElevmappa = res blobContent.flow.syncElevmappa.status = 'finished'