Skip to content

Commit

Permalink
Avoid cycles
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Feb 21, 2024
1 parent b04747b commit c039e5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/data/ChangeSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ export class ChangeSetCreator {
const {workspace, files} = await this.graph.preferPublished.get(
Query.whereId(entryId).select({
workspace: Query.workspace,
files: Query.children(MediaFile, 999)
files: Query.children<typeof MediaFile>(undefined!, 999).where(
Query.type.is('MediaFile')
)
})
)
const mediaDir =
Expand Down

0 comments on commit c039e5e

Please sign in to comment.