@better-giving/donation 3.0.31 → 3.0.32
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/donations-db.mjs +3 -0
- package/dist/onhold-db.mjs +3 -0
- package/package.json +1 -1
- package/src/donations-db.mts +3 -0
- package/src/onhold-db.mts +3 -0
package/dist/donations-db.mjs
CHANGED
|
@@ -32,6 +32,8 @@ export class DonationsDb extends Db {
|
|
|
32
32
|
const cmd = new UpdateCommand({
|
|
33
33
|
TableName: this.table,
|
|
34
34
|
Key: this.key(id),
|
|
35
|
+
ReturnValues: "ALL_NEW",
|
|
36
|
+
ConditionExpression: `attribute_exists(${"transactionId"})`,
|
|
35
37
|
...upd8.collect(),
|
|
36
38
|
});
|
|
37
39
|
return this.client.send(cmd).then((r) => r.Attributes);
|
|
@@ -44,6 +46,7 @@ export class DonationsDb extends Db {
|
|
|
44
46
|
return {
|
|
45
47
|
TableName: this.table,
|
|
46
48
|
Key: this.key(id),
|
|
49
|
+
ConditionExpression: `attribute_exists(${"transactionId"})`,
|
|
47
50
|
...upd8.collect(),
|
|
48
51
|
};
|
|
49
52
|
}
|
package/dist/onhold-db.mjs
CHANGED
|
@@ -26,6 +26,8 @@ export class OnHoldDonationsDb extends Db {
|
|
|
26
26
|
const cmd = new UpdateCommand({
|
|
27
27
|
TableName: this.table,
|
|
28
28
|
Key: this.key(id),
|
|
29
|
+
ReturnValues: "ALL_NEW",
|
|
30
|
+
ConditionExpression: `attribute_exists(${"transactionId"})`,
|
|
29
31
|
...upd8.collect(),
|
|
30
32
|
});
|
|
31
33
|
return this.client.send(cmd).then((r) => r.Attributes);
|
|
@@ -38,6 +40,7 @@ export class OnHoldDonationsDb extends Db {
|
|
|
38
40
|
return {
|
|
39
41
|
TableName: this.table,
|
|
40
42
|
Key: this.key(id),
|
|
43
|
+
ConditionExpression: `attribute_exists(${"transactionId"})`,
|
|
41
44
|
...upd8.collect(),
|
|
42
45
|
};
|
|
43
46
|
}
|
package/package.json
CHANGED
package/src/donations-db.mts
CHANGED
|
@@ -58,6 +58,8 @@ export class DonationsDb extends Db {
|
|
|
58
58
|
const cmd = new UpdateCommand({
|
|
59
59
|
TableName: this.table,
|
|
60
60
|
Key: this.key(id),
|
|
61
|
+
ReturnValues: "ALL_NEW",
|
|
62
|
+
ConditionExpression: `attribute_exists(${"transactionId" satisfies K})`,
|
|
61
63
|
...upd8.collect(),
|
|
62
64
|
});
|
|
63
65
|
return this.client.send(cmd).then((r) => r.Attributes as any);
|
|
@@ -71,6 +73,7 @@ export class DonationsDb extends Db {
|
|
|
71
73
|
return {
|
|
72
74
|
TableName: this.table,
|
|
73
75
|
Key: this.key(id),
|
|
76
|
+
ConditionExpression: `attribute_exists(${"transactionId" satisfies K})`,
|
|
74
77
|
...upd8.collect(),
|
|
75
78
|
};
|
|
76
79
|
}
|
package/src/onhold-db.mts
CHANGED
|
@@ -52,6 +52,8 @@ export class OnHoldDonationsDb extends Db {
|
|
|
52
52
|
const cmd = new UpdateCommand({
|
|
53
53
|
TableName: this.table,
|
|
54
54
|
Key: this.key(id),
|
|
55
|
+
ReturnValues: "ALL_NEW",
|
|
56
|
+
ConditionExpression: `attribute_exists(${"transactionId" satisfies K})`,
|
|
55
57
|
...upd8.collect(),
|
|
56
58
|
});
|
|
57
59
|
return this.client.send(cmd).then((r) => r.Attributes as any);
|
|
@@ -65,6 +67,7 @@ export class OnHoldDonationsDb extends Db {
|
|
|
65
67
|
return {
|
|
66
68
|
TableName: this.table,
|
|
67
69
|
Key: this.key(id),
|
|
70
|
+
ConditionExpression: `attribute_exists(${"transactionId" satisfies K})`,
|
|
68
71
|
...upd8.collect(),
|
|
69
72
|
};
|
|
70
73
|
}
|