Skip to content

Commit 8260175

Browse files
authored
fix: support cds.queued/unqueued for cds 9 (#333)
1 parent cdfbbaf commit 8260175

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/initialize.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@ const monkeyPatchCAPOutbox = () => {
182182
get: () => eventQueueAsOutbox.unboxed,
183183
configurable: true,
184184
});
185+
Object.defineProperty(cds, "queued", {
186+
get: () => eventQueueAsOutbox.outboxed,
187+
configurable: true,
188+
});
189+
Object.defineProperty(cds, "unqueued", {
190+
get: () => eventQueueAsOutbox.unboxed,
191+
configurable: true,
192+
});
185193
}
186194
};
187195

0 commit comments

Comments
 (0)