Skip to content

Commit

Permalink
fix(local/listExecutions): metadata filters was noop'ed (#126)
Browse files Browse the repository at this point in the history
* fix(local/listExecutions): `metadata` filters was noop'ed

* chore: changeset
  • Loading branch information
charlypoly authored Feb 28, 2024
1 parent 91e3a5d commit f8a010d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fluffy-insects-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@defer/client": minor
---

Local support for metadata filtering
2 changes: 1 addition & 1 deletion src/backend/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function isExecutionMatchFilter(
return false;

if (filters?.metadata && filters.metadata.length > 0 && execution.metadata) {
filters.metadata
return filters.metadata
.filter((mdFilter) => mdFilter.values.length > 0)
.some((mdFilter) =>
mdFilter.values.some(
Expand Down

0 comments on commit f8a010d

Please sign in to comment.