hgs-twilio-class-lib 1.1.85 → 1.1.86

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.
@@ -46,7 +46,7 @@ class AgentScorecardController {
46
46
  throw AgentScorecarddetails.validationMessages; // Throw error if data validation fails
47
47
  }
48
48
  // Open database connection
49
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.agentScorecardDatabaseName);
49
+ const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
50
50
  const database = databaseConnection.result;
51
51
  // Start database transaction
52
52
  const dbTransaction = database.transactionItem(DatabaseConfig_1.databaseConfig.tables.agentScorecardTable, "readwrite");
@@ -81,7 +81,7 @@ class AgentScorecardController {
81
81
  throw AgentScorecarddetails.validationMessages; // Throw error if data validation fails
82
82
  }
83
83
  // Open database connection
84
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.agentScorecardDatabaseName);
84
+ const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
85
85
  const database = databaseConnection.result;
86
86
  // Start database transaction
87
87
  const dbTransaction = database.transactionItem(DatabaseConfig_1.databaseConfig.tables.agentScorecardTable, "readwrite");
@@ -112,7 +112,7 @@ class AgentScorecardController {
112
112
  return __awaiter(this, void 0, void 0, function* () {
113
113
  try {
114
114
  // Open database connection
115
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.agentScorecardDatabaseName);
115
+ const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
116
116
  const database = databaseConnection.result;
117
117
  // Start database transaction
118
118
  const dbTransaction = database.transactionItem(DatabaseConfig_1.databaseConfig.tables.agentScorecardTable, "readwrite");
@@ -153,7 +153,7 @@ class AgentScorecardController {
153
153
  return __awaiter(this, void 0, void 0, function* () {
154
154
  try {
155
155
  // Open database connection
156
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.agentScorecardDatabaseName);
156
+ const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
157
157
  const database = databaseConnection.result;
158
158
  // Start database transaction
159
159
  const dbTransaction = database.transactionItem(DatabaseConfig_1.databaseConfig.tables.agentScorecardTable, "readwrite");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hgs-twilio-class-lib",
3
- "version": "1.1.85",
3
+ "version": "1.1.86",
4
4
  "description": "Flex 2.0 backend to connect with any database ",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./types/index.d.ts",