Skip to content

Commit

Permalink
Delete chunked cache results on clear:results (#387)
Browse files Browse the repository at this point in the history
* Match chunked cache results in clearCache

* improve var names
  • Loading branch information
avmey authored Dec 12, 2024
1 parent 3622f07 commit 58c2778
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/geoprocessing/src/aws/dynamodb/scanTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ export function scanTasks(
query = {
TableName: tableName,
ProjectionExpression: "id, service",
FilterExpression: "service = :pk",
FilterExpression:
"service = :serviceName OR begins_with(service, :serviceNameChunked)",
ExpressionAttributeValues: {
":pk": serviceName,
":serviceName": serviceName,
":serviceNameChunked": `${serviceName}-chunk`,
},
};
}
Expand Down

0 comments on commit 58c2778

Please sign in to comment.