@amohamud23/notihub 1.1.29 → 1.1.31

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
@@ -1194,7 +1194,10 @@ var NotiTypeStats = class _NotiTypeStats {
1194
1194
  const command = new import_lib_dynamodb8.UpdateCommand({
1195
1195
  TableName: _NotiTypeStats.TABLE_NAME,
1196
1196
  Key: { id },
1197
- UpdateExpression: "ADD views :inc",
1197
+ UpdateExpression: "ADD #views :inc",
1198
+ ExpressionAttributeNames: {
1199
+ "#views": "views"
1200
+ },
1198
1201
  ExpressionAttributeValues: {
1199
1202
  ":inc": 1
1200
1203
  },
@@ -1631,7 +1634,10 @@ var NotificationStats = class _NotificationStats {
1631
1634
  const command = new import_lib_dynamodb13.UpdateCommand({
1632
1635
  TableName: _NotificationStats.TABLE_NAME,
1633
1636
  Key: { id },
1634
- UpdateExpression: "ADD viewCount :inc",
1637
+ UpdateExpression: "ADD #views :inc",
1638
+ ExpressionAttributeNames: {
1639
+ "#views": "views"
1640
+ },
1635
1641
  ExpressionAttributeValues: {
1636
1642
  ":inc": 1
1637
1643
  },
package/dist/index.js CHANGED
@@ -1194,7 +1194,10 @@ var NotiTypeStats = class _NotiTypeStats {
1194
1194
  const command = new UpdateCommand7({
1195
1195
  TableName: _NotiTypeStats.TABLE_NAME,
1196
1196
  Key: { id },
1197
- UpdateExpression: "ADD views :inc",
1197
+ UpdateExpression: "ADD #views :inc",
1198
+ ExpressionAttributeNames: {
1199
+ "#views": "views"
1200
+ },
1198
1201
  ExpressionAttributeValues: {
1199
1202
  ":inc": 1
1200
1203
  },
@@ -1652,7 +1655,10 @@ var NotificationStats = class _NotificationStats {
1652
1655
  const command = new UpdateCommand11({
1653
1656
  TableName: _NotificationStats.TABLE_NAME,
1654
1657
  Key: { id },
1655
- UpdateExpression: "ADD viewCount :inc",
1658
+ UpdateExpression: "ADD #views :inc",
1659
+ ExpressionAttributeNames: {
1660
+ "#views": "views"
1661
+ },
1656
1662
  ExpressionAttributeValues: {
1657
1663
  ":inc": 1
1658
1664
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.1.29",
3
+ "version": "1.1.31",
4
4
  "description": "Notihub Package",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",