@better-giving/donation 3.0.16 → 3.0.17

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.
@@ -60,7 +60,7 @@ export class OnHoldDonationsDb extends Db {
60
60
  let kce = "#email = :email";
61
61
  /** expression attribute names */
62
62
  const ean = {
63
- "#email": "email",
63
+ "#email": "kycEmail",
64
64
  };
65
65
  /** expression attribute values */
66
66
  const eav = {
@@ -85,13 +85,9 @@ export class OnHoldDonationsDb extends Db {
85
85
  const cmd = new QueryCommand({
86
86
  TableName: this.table,
87
87
  IndexName: OnHoldDonationsDb.gsi_email$tx_date,
88
- KeyConditionExpression: "#email = :email",
89
- ExpressionAttributeNames: {
90
- "#email": "email",
91
- },
92
- ExpressionAttributeValues: {
93
- ":email": email,
94
- },
88
+ KeyConditionExpression: kce,
89
+ ExpressionAttributeNames: ean,
90
+ ExpressionAttributeValues: eav,
95
91
  ScanIndexForward: false,
96
92
  });
97
93
  return this.client.send(cmd).then((this.to_page));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/donation",
3
- "version": "3.0.16",
3
+ "version": "3.0.17",
4
4
  "devDependencies": {
5
5
  "@better-giving/config": "1.1.2"
6
6
  },
package/src/onhold-db.mts CHANGED
@@ -93,7 +93,7 @@ export class OnHoldDonationsDb extends Db {
93
93
  let kce = "#email = :email";
94
94
  /** expression attribute names */
95
95
  const ean: Record<string, string> = {
96
- "#email": "email" satisfies K,
96
+ "#email": "kycEmail" satisfies K,
97
97
  };
98
98
  /** expression attribute values */
99
99
  const eav: Record<string, any> = {
@@ -118,13 +118,9 @@ export class OnHoldDonationsDb extends Db {
118
118
  const cmd = new QueryCommand({
119
119
  TableName: this.table,
120
120
  IndexName: OnHoldDonationsDb.gsi_email$tx_date,
121
- KeyConditionExpression: "#email = :email",
122
- ExpressionAttributeNames: {
123
- "#email": "email" satisfies K,
124
- },
125
- ExpressionAttributeValues: {
126
- ":email": email,
127
- },
121
+ KeyConditionExpression: kce,
122
+ ExpressionAttributeNames: ean,
123
+ ExpressionAttributeValues: eav,
128
124
  ScanIndexForward: false,
129
125
  });
130
126
  return this.client.send(cmd).then(this.to_page<IDonationOnHold>);