Order categories newest-first and uppercase menu category names.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -83,7 +83,7 @@ func (r repository) GetCategories(ctx context.Context) ([]users.CategoryDTO, err
|
||||
LEFT JOIN sub_categories sc ON sc.category_id = c.id AND sc.status = true
|
||||
WHERE c.status = true
|
||||
GROUP BY c.id
|
||||
ORDER BY c.created_at ASC;`
|
||||
ORDER BY c.created_at DESC;`
|
||||
|
||||
rows, err := r.client.Query(ctx, q)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user