@amohamud23/notihub 1.0.186 → 1.0.187

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
@@ -581,11 +581,9 @@ var NotiType = class _NotiType {
581
581
  static async getAllNotiTypesByEntityId(entityId) {
582
582
  const command = new import_lib_dynamodb6.QueryCommand({
583
583
  TableName: _NotiType.TABLE_NAME,
584
- IndexName: "EntityIdIndex",
585
- // Assuming you have a GSI for entityId
586
- KeyConditionExpression: "entityId = :entityId",
584
+ KeyConditionExpression: "customerId = :customerId",
587
585
  ExpressionAttributeValues: {
588
- ":entityId": entityId
586
+ ":customerId": entityId
589
587
  }
590
588
  });
591
589
  try {
package/dist/index.js CHANGED
@@ -569,11 +569,9 @@ var NotiType = class _NotiType {
569
569
  static async getAllNotiTypesByEntityId(entityId) {
570
570
  const command = new QueryCommand5({
571
571
  TableName: _NotiType.TABLE_NAME,
572
- IndexName: "EntityIdIndex",
573
- // Assuming you have a GSI for entityId
574
- KeyConditionExpression: "entityId = :entityId",
572
+ KeyConditionExpression: "customerId = :customerId",
575
573
  ExpressionAttributeValues: {
576
- ":entityId": entityId
574
+ ":customerId": entityId
577
575
  }
578
576
  });
579
577
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.0.186",
3
+ "version": "1.0.187",
4
4
  "description": "Notihub Package",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",