This commit is contained in:
@@ -274,7 +274,7 @@ func (d *Database) GetAllCommands(status, username string) ([]map[string]any, er
|
||||
gdb = gdb.Where("c.username = ?", username)
|
||||
}
|
||||
|
||||
if err := gdb.Order("c.created_at DESC").Limit(1000).Scan(&rows).Error; err != nil {
|
||||
if err := gdb.Order("c.created_at DESC").Scan(&rows).Error; err != nil {
|
||||
return nil, fmt.Errorf("erreur lors de la récupération des commandes: %w", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user