Skip to content

Commit

Permalink
fix: highlighted endpoint (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
braianj authored Nov 30, 2023
1 parent ee4cdb9 commit d601010
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/entities/Place/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export default class PlaceModel extends Model<PlaceAttributes> {
WHERE
p."disabled" is false AND "world" is false
${conditional(options.only_highlighted, SQL`AND highlighted = TRUE`)}
${conditional(!!options.search, SQL`AND rank > 0`)}
${conditional(
options.positions?.length > 0,
Expand Down Expand Up @@ -273,6 +274,7 @@ export default class PlaceModel extends Model<PlaceAttributes> {
WHERE
p."disabled" is false AND "world" is false
${conditional(options.only_highlighted, SQL`AND highlighted = TRUE`)}
${conditional(
options.positions?.length > 0,
SQL`AND p.base_position IN (
Expand Down

0 comments on commit d601010

Please sign in to comment.