diff --git a/lib/archive.js b/lib/archive.js index 47b294c..17e77ea 100644 --- a/lib/archive.js +++ b/lib/archive.js @@ -90,7 +90,7 @@ module.exports.signOff = async blobContent => { } module.exports.syncElevmappa = async blobContent => { - const { e18JobId, Fodselsnummer, Fornavn, Etternavn, FolkeRegisterAdresse, Dokumentelement: { Dokumenttype, DokumentId } } = blobContent + const { Fodselsnummer, Fornavn, Etternavn, FolkeRegisterAdresse, Dokumentelement: { Dokumenttype, DokumentId } } = blobContent try { // E18 @@ -101,7 +101,7 @@ module.exports.syncElevmappa = async blobContent => { // first try, ssn logger('info', ['archive', 'syncElevmappa', 'calling ssn']) - const res = await callArchive({ ssn: Fodselsnummer }, e18JobId, blobContent.flow.syncElevmappaTaskId, 'SyncElevmappe') + const res = await callArchive({ ssn: Fodselsnummer }, blobContent.e18JobId, blobContent.flow.syncElevmappaTaskId, 'SyncElevmappe') if (typeof res === 'object') { blobContent.flow.syncElevmappa = res blobContent.flow.syncElevmappa.status = 'finished' @@ -126,7 +126,7 @@ module.exports.syncElevmappa = async blobContent => { zipPlace: FolkeRegisterAdresse.Poststed } logger('info', ['archive', 'syncElevmappa', 'calling skip dsf']) - const res = await callArchive(payload, e18JobId, blobContent.flow.syncElevmappaTaskId, 'SyncElevmappe') + const res = await callArchive(payload, blobContent.e18JobId, blobContent.flow.syncElevmappaTaskId, 'SyncElevmappe') if (!res) throw new Error('404 - Resource not found') if (typeof res === 'object') { blobContent.flow.syncElevmappa = res