Skip to content

Commit

Permalink
chore: alter pdd puzzle marker
Browse files Browse the repository at this point in the history
  • Loading branch information
heypoom committed Jun 11, 2023
1 parent 1202712 commit 9c32887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cms/src/fields/Backpopulate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ function backpopulateHook<TSlug extends keyof Config['collections']>({

let relatedDocs: PaginatedDocs<Config['collections'][TSlug]>
if (Array.isArray(field.relationTo)) {
// @todo BP1 handle backpopulation for polymorphic relationships
// @todo #BP1 handle backpopulation for polymorphic relationships
throw new Error('polymorphic relationship backpopulation not implemented')
} else if (field.relationTo === collection.config.slug) {
relatedDocs = await payload.find({
collection: relationFrom,
pagination: false,
where: {
[relationField]: {
// @todo BP3 handle relationships with hasMany: false
// @todo #BP3 handle relationships with hasMany: false
contains: data.id,
},
},
Expand Down

5 comments on commit 9c32887

@0pdd
Copy link

@0pdd 0pdd commented on 9c32887 Jun 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1-6363eb40 disappeared from server.mjs), that's why I closed #6. Please, remember that the puzzle was not necessarily removed in this particular commit. Maybe it happened earlier, but we discovered this fact only now.

@0pdd
Copy link

@0pdd 0pdd commented on 9c32887 Jun 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 5-7102bd98 discovered in cms/src/collections/Services.ts) and submitted as #17. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link

@0pdd 0pdd commented on 9c32887 Jun 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle BP1-1ca9ac7f discovered in cms/src/fields/Backpopulate.ts) and submitted as #18. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link

@0pdd 0pdd commented on 9c32887 Jun 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle BP3-370774eb discovered in cms/src/fields/Backpopulate.ts) and submitted as #19. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link

@0pdd 0pdd commented on 9c32887 Jun 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1-41b9b5de discovered in cms/src/payload.config.ts) and submitted as #20. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.