From dc14aa30eb46af14d34f7a53f7ea79986a086706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Jim=C3=A9nez?= Date: Mon, 18 Jul 2022 13:54:59 +0200 Subject: [PATCH] feat: add subject field to comply the change in the azure lib (#71) 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). --- lib/operations/topics/publish.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/operations/topics/publish.js b/lib/operations/topics/publish.js index bd0420a..69056f8 100644 --- a/lib/operations/topics/publish.js +++ b/lib/operations/topics/publish.js @@ -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, diff --git a/package.json b/package.json index e126dfa..f0a8354 100644 --- a/package.json +++ b/package.json @@ -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": {