fix(web): fix behavior on getting no quotes
This commit is contained in:
@@ -121,6 +121,7 @@ func QuotesGet(ctx context.Context, user_id string, filter string, sort string,
|
||||
err = fmt.Errorf("error while getting quotes: %w", err)
|
||||
return
|
||||
}
|
||||
quotes = []models.Quote{}
|
||||
for rows.Next() {
|
||||
var quote models.Quote
|
||||
err = rows.Scan("e.ID, "e.Text, "e.Author, "e.Datetime, "e.Creator.ID, "e.Creator.Name, "e.Creator.Login, "e.Creator.Role, "e.Creator.TelegramID)
|
||||
|
||||
Reference in New Issue
Block a user