hgs-twilio-class-lib 1.1.79 → 1.1.80

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.
@@ -10,6 +10,7 @@ export declare class RealTimeDashboardController {
10
10
  addMap(reqBody: {
11
11
  syncMapName: string;
12
12
  Id: string;
13
+ ttl: number;
13
14
  }): Promise<any>;
14
15
  getAllMaps(query: SearchParameterType & {
15
16
  syncServiceName: string;
@@ -39,13 +39,13 @@ class RealTimeDashboardController {
39
39
  addMap(reqBody) {
40
40
  return __awaiter(this, void 0, void 0, function* () {
41
41
  try {
42
- const { syncMapName, Id } = reqBody;
42
+ const { syncMapName, Id, ttl } = reqBody;
43
43
  if (!syncMapName) {
44
44
  throw new Error("uniqueName is required.");
45
45
  }
46
46
  const dbTransaction = yield this.getsyncTransaction(syncMapName);
47
47
  const table = dbTransaction.objectStore(syncMapName);
48
- return table.add(syncMapName, Id, 48 * 60 * 60);
48
+ return table.add(syncMapName, Id, ttl);
49
49
  }
50
50
  catch (error) {
51
51
  console.error("Error adding real-time dashboard Map:", error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hgs-twilio-class-lib",
3
- "version": "1.1.79",
3
+ "version": "1.1.80",
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",