@izara_project/izara-core-library-dynamodb 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 +1 -1
- package/src/DynamodbSharedLib.js +3 -3
package/package.json
CHANGED
package/src/DynamodbSharedLib.js
CHANGED
|
@@ -25,7 +25,7 @@ const cloneDeep = require('lodash.clonedeep');
|
|
|
25
25
|
// External Izara project imports
|
|
26
26
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
27
27
|
const NoRetryError = require('@izara_project/izara-core-library-core').NoRetryError;
|
|
28
|
-
const { getServiceNameWithCache } = require('@izara_project/izara-core-library-service-schemas').serviceConfig;
|
|
28
|
+
// const { getServiceNameWithCache } = require('@izara_project/izara-core-library-service-schemas').serviceConfig;
|
|
29
29
|
|
|
30
30
|
// Constants
|
|
31
31
|
const MAX_RECURSION_LEVEL = 20;
|
|
@@ -53,9 +53,9 @@ const dynamodb = DynamoDBDocument.from(new DynamoDB(), {
|
|
|
53
53
|
|
|
54
54
|
module.exports.tableName = async (_izContext, tableName, serviceTag = null) => {
|
|
55
55
|
if (!serviceTag) {
|
|
56
|
-
return process.env.
|
|
56
|
+
return process.env.iz_serviceTag + process.env.iz_stage + tableName;
|
|
57
57
|
} else {
|
|
58
|
-
return
|
|
58
|
+
return serviceTag + process.env.iz_stage + tableName;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
// /**
|