Skip to content

Commit

Permalink
Server: Fixed issue that could cause server to return empty items in …
Browse files Browse the repository at this point in the history
…some rare cases
  • Loading branch information
laurent22 committed Oct 31, 2021
1 parent 22d472d commit 99ea4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/models/ItemModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export default class ItemModel extends BaseModel<Item> {
private childrenQuery(userId: Uuid, pathQuery: string = '', count: boolean = false, options: LoadOptions = {}): Knex.QueryBuilder {
const query = this
.db('user_items')
.leftJoin('items', 'user_items.item_id', 'items.id')
.innerJoin('items', 'user_items.item_id', 'items.id')
.where('user_items.user_id', '=', userId);

if (count) {
Expand Down

0 comments on commit 99ea4b7

Please sign in to comment.