Skip to content

Commit

Permalink
Fix wrong attribute ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
treoden committed Jun 15, 2024
1 parent 0b67232 commit e2c7bb1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
if (!user) {
query.andWhere('attribute.display_on_frontend', '=', true);
}
query.orderBy('attribute.sort_order', 'ASC');
const attributes = await query.execute(pool);
return attributes.map((a) => camelCase(a));
},
Expand Down

0 comments on commit e2c7bb1

Please sign in to comment.