Skip to content

Commit

Permalink
fix find recomends by ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Xziy committed Aug 23, 2024
1 parent fb4d29e commit 481a461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions models/Dish.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ let Model = {
const groupLimit = Math.max(Math.round(limit / ids.length), 1);
let dishes = await sails.models.dish.find({
where: {
id: ids,
...baseCriteriaDish
}
}).populate('recommendations', {
Expand Down
1 change: 1 addition & 0 deletions models/Dish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ let Model = {

let dishes = await sails.models.dish.find({
where: {
id: ids,
...baseCriteriaDish
}
}).populate('recommendations', {
Expand Down

0 comments on commit 481a461

Please sign in to comment.