@izara_project/izara-core-library-sns 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-core-library-sns",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Connecting with AWS SNS Resource",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
18
  'use strict';
19
19
 
20
- const { getServiceNameWithCache } = require('@izara_project/izara-core-library-service-schemas/src/ServiceConfig')
20
+ // const { getServiceNameWithCache } = require('@izara_project/izara-core-library-service-schemas/src/ServiceConfig')
21
21
  /**
22
22
  * Generate sns topic name
23
23
  * @param {Object} _izContext
@@ -31,9 +31,9 @@ module.exports.snsTopicName = async (_izContext, topicName, serviceTag = null) =
31
31
  // return serviceName + process.env.iz_stage + topicName
32
32
 
33
33
  if (!serviceTag) { // for owner service
34
- return process.env.iz_resourcePrefix + topicName;
34
+ return process.env.iz_serviceTag + process.env.iz_stage + topicName;
35
35
  } else { // create table name for external service
36
- return await getServiceNameWithCache(_izContext, serviceTag) + process.env.iz_stage + topicName;
36
+ return serviceTag + process.env.iz_stage + topicName;
37
37
  }
38
38
  }
39
39