revert
This commit is contained in:
@@ -64,10 +64,7 @@ async function _readAddresses (req) {
|
|||||||
try {
|
try {
|
||||||
return txExt.run(ql)
|
return txExt.run(ql)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// If external system is not available, use own replicated data
|
console.log(e)
|
||||||
console.error(e)
|
|
||||||
const tx = cds.transaction(req)
|
|
||||||
return tx.run(ql)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,8 +85,6 @@ async function _fillAddress (req) {
|
|||||||
await tx.run(qlStatement)
|
await tx.run(qlStatement)
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// If external system is not available and data was fetched
|
|
||||||
// using own replicated data, nothing needs to be done here.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user