@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 +2 -4
- package/dist/index.js +2 -4
- package/package.json +1 -1
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
|
-
|
|
585
|
-
// Assuming you have a GSI for entityId
|
|
586
|
-
KeyConditionExpression: "entityId = :entityId",
|
|
584
|
+
KeyConditionExpression: "customerId = :customerId",
|
|
587
585
|
ExpressionAttributeValues: {
|
|
588
|
-
":
|
|
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
|
-
|
|
573
|
-
// Assuming you have a GSI for entityId
|
|
574
|
-
KeyConditionExpression: "entityId = :entityId",
|
|
572
|
+
KeyConditionExpression: "customerId = :customerId",
|
|
575
573
|
ExpressionAttributeValues: {
|
|
576
|
-
":
|
|
574
|
+
":customerId": entityId
|
|
577
575
|
}
|
|
578
576
|
});
|
|
579
577
|
try {
|