@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.
- package/dist/onhold-db.mjs +4 -8
- package/package.json +1 -1
- package/src/onhold-db.mts +4 -8
package/dist/onhold-db.mjs
CHANGED
|
@@ -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": "
|
|
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:
|
|
89
|
-
ExpressionAttributeNames:
|
|
90
|
-
|
|
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
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": "
|
|
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:
|
|
122
|
-
ExpressionAttributeNames:
|
|
123
|
-
|
|
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>);
|