Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 4877386

Browse files
committed
A bit more fault tolerant
(e.g. when only one service is mocked)
1 parent 4bd4446 commit 4877386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

suppliers/srv/mashup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = async()=>{ // called by server.js
3737
// Subscribe to changes in the S4 origin of Suppliers data
3838
S4bupa.on ('BusinessPartner.Changed', async msg => { //> would be great if we had batch events from S/4
3939
let replica = await SELECT.one('ID').from (Suppliers) .where ({ID: msg.data.BusinessPartner})
40-
return replicate (replica.ID)
40+
if (replica) return replicate (replica.ID)
4141
})
4242

4343
/**

0 commit comments

Comments
 (0)