@amohamud23/notihub 1.1.16 → 1.1.18

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/dist/index.cjs CHANGED
@@ -525,7 +525,7 @@ var Notifications = class _Notifications {
525
525
  notiTypeIds.map(async (ntid) => {
526
526
  const params = {
527
527
  TableName: this.TABLE_NAME,
528
- IndexName: "NotiTypeIdIndex",
528
+ IndexName: "NotiTypeIdCreatedAtIndex",
529
529
  // Assuming you have a GSI for notiTypeId
530
530
  KeyConditionExpression: "notiTypeId = :ntid",
531
531
  ExpressionAttributeValues: { ":ntid": ntid },
@@ -1206,9 +1206,7 @@ var SubscriptionType = class _SubscriptionType {
1206
1206
  static async createSubscriptionType(subscriptionType) {
1207
1207
  const command = new import_lib_dynamodb10.PutCommand({
1208
1208
  TableName: _SubscriptionType.TABLE_NAME,
1209
- Item: {
1210
- subscriptionType
1211
- }
1209
+ Item: subscriptionType
1212
1210
  });
1213
1211
  try {
1214
1212
  await ddbDocClient.send(command);
package/dist/index.js CHANGED
@@ -501,7 +501,7 @@ var Notifications = class _Notifications {
501
501
  notiTypeIds.map(async (ntid) => {
502
502
  const params = {
503
503
  TableName: this.TABLE_NAME,
504
- IndexName: "NotiTypeIdIndex",
504
+ IndexName: "NotiTypeIdCreatedAtIndex",
505
505
  // Assuming you have a GSI for notiTypeId
506
506
  KeyConditionExpression: "notiTypeId = :ntid",
507
507
  ExpressionAttributeValues: { ":ntid": ntid },
@@ -1212,9 +1212,7 @@ var SubscriptionType = class _SubscriptionType {
1212
1212
  static async createSubscriptionType(subscriptionType) {
1213
1213
  const command = new PutCommand9({
1214
1214
  TableName: _SubscriptionType.TABLE_NAME,
1215
- Item: {
1216
- subscriptionType
1217
- }
1215
+ Item: subscriptionType
1218
1216
  });
1219
1217
  try {
1220
1218
  await ddbDocClient.send(command);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "description": "Notihub Package",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",