Skip to content

Commit

Permalink
forgot about e18
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgtho committed Jun 20, 2022
1 parent c1bf8f7 commit fab6dc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/archive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit fab6dc3

Please sign in to comment.