Skip to content

Commit

Permalink
feat: add subject field to comply the change in the azure lib (#71)
Browse files Browse the repository at this point in the history
It seems that adding a `label` property is no longer supported by the Azure Service Bus library. We have found (not in the documentation) that now the lib is expecting a property called `subject`. 
This change adds a `subject` property next to the existing `label` one (just in case of any potential backwards issue).
  • Loading branch information
Betisman authored Jul 18, 2022
1 parent 51efa03 commit dc14aa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/operations/topics/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = sender => async (body, options = {}) => { // eslint-disable-lin
const { label = '', contentEncoding, applicationProperties, scheduledEnqueueTimeUtc, ...messageFields } = options;
const message = {
label,
subject: label,
applicationProperties: {
contentEncoding,
attemptCount: 0,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "systemic-azure-bus",
"version": "3.3.3",
"version": "3.4.0",
"description": "A systemic component for azure bus",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit dc14aa3

Please sign in to comment.