Order categories newest-first and uppercase menu category names.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-05 16:05:36 +05:00
parent a04bbb8eae
commit 3230cc59ad
2 changed files with 6 additions and 4 deletions

View File

@@ -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 {