We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fe5ffc commit 8545825Copy full SHA for 8545825
internal/datastore/src/letter-repository.ts
@@ -75,12 +75,8 @@ export class LetterRepository {
75
const result = await this.ddbClient.send(new QueryCommand({
76
TableName: this.config.lettersTableName,
77
IndexName: 'supplierStatus-index',
78
- KeyConditions: {
79
- supplierStatus: {
80
- ComparisonOperator: 'EQ',
81
- AttributeValueList: [`${supplierId}#${status}`]
82
- }
83
- },
+ KeyConditionExpression: 'supplierStatus = :supplierStatus',
+ ExpressionAttributeValues: { ':supplierStatus': `${supplierId}#${status}` },
84
Limit: extendedOptions.pageSize,
85
ExclusiveStartKey: extendedOptions.exclusiveStartKey
86
}));
0 commit comments