Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/metrics/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ module.exports = () => {
cds.db.after(['CREATE'], queueEntity, async (_, req) => {
const tenant = cds.context?.tenant

const queuedServiceName = req.data.target
const queuedServiceName = req.data.msg.service ?? req.data.target

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

msg needs to be parsed:

  const taskMsg = {
    ID: cds.utils.uuid(),
    target: _targetName(name, taskOpts),
    timestamp: _get100NanosecondTimestampISOString(msg.queue?.after), // needs to be different for each emit
    msg: JSON.stringify(_msg)
  }


if (!registeredServics.has(queuedServiceName)) {

Expand Down
Loading