chore: build
Backend - Build & Lint / build (push) Has been cancelled

This commit is contained in:
2026-07-01 20:56:41 +02:00
parent 9e6473ed3f
commit cfb5b79025
6 changed files with 54 additions and 25 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func (d *Database) GetOrderRating(orderID int) (*LivreurRating, error) {
func (d *Database) GetLivreurRatings(livreurUsername string) ([]LivreurRating, float64, error) {
var ratings []LivreurRating
if err := d.GDB.Raw(`
SELECT * FROM livreur_ratings WHERE livreur_username = ? ORDER BY created_at DESC
SELECT * FROM livreur_ratings WHERE livreur_username = ? ORDER BY created_at DESC LIMIT 200
`, livreurUsername).Scan(&ratings).Error; err != nil {
return nil, 0, err
}