Skip to content

Commit

Permalink
Throw if resource not found
Browse files Browse the repository at this point in the history
  • Loading branch information
runely committed May 19, 2022
1 parent 5733540 commit 2bb360d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/archive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2bb360d

Please sign in to comment.