Skip to content

Commit

Permalink
Ignore filters in affected entity check (#3366)
Browse files Browse the repository at this point in the history
Co-authored-by: Niko Sams <ns@vivid-planet.com>
Co-authored-by: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 11, 2025
1 parent e7b49d3 commit a84d88c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/eighty-goats-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@comet/cms-api": minor
---

Ignore filters in `@AffectedEntity` check

When using the `@AffectedEntity` decorator we possibly also want to check entities which are filtered by default. Since we don't know how the entity is handled in the resolver we ignore the filters completely.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class ContentScopeService {
}

for (const id of ids) {
const row = await repo.findOneOrFail(id);
const row = await repo.findOneOrFail(id, { filters: false }); // disable all default filters, e.g., excludeDeleted
if (row.scope) {
contentScopes.push([row.scope as ContentScope]);
} else {
Expand Down

0 comments on commit a84d88c

Please sign in to comment.