Skip to content

Commit

Permalink
FIX(formatter) use dashes not underscores for message field keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Matousek authored and jiridanek committed Feb 16, 2023
1 parent db80879 commit a2b5bb6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,13 @@ class Formatter {

//amqp properties
workDict['id'] = dict['message_id'];
workDict['user_id'] = Formatter.castUserId(dict['user_id']);
workDict['user-id'] = Formatter.castUserId(dict['user_id']);
workDict['to'] = dict['to'];
workDict['subject'] = dict['subject'];
workDict['reply_to'] = dict['reply_to'];
workDict['correlation_id'] = dict['correlation_id'];
workDict['content_type'] = dict['content_type'];
workDict['content_encoding'] = dict['content_encoding'];
workDict['reply-to'] = dict['reply_to'];
workDict['correlation-id'] = dict['correlation_id'];
workDict['content-type'] = dict['content_type'];
workDict['content-encoding'] = dict['content_encoding'];
workDict['absolute-expiry-time'] = dict['absolute_expiry_time'];
workDict['creation-time'] = dict['creation_time'].getTime();
workDict['group-id'] = dict['group_id'];
Expand Down

0 comments on commit a2b5bb6

Please sign in to comment.