Complete lab2 grade 4 implementation and report
This commit is contained in:
@@ -140,7 +140,7 @@ func (s *PostgresStore) MessagePage(ctx context.Context, chatID string, limit in
|
||||
query += ` AND (created_at,id)>($3,$4::uuid)`
|
||||
args = append(args, after.CreatedAt, after.ID)
|
||||
}
|
||||
query += ` ORDER BY created_at,id LIMIT $2`
|
||||
query += ` ORDER BY messages.created_at,messages.id LIMIT $2`
|
||||
rows, err := s.pool.Query(ctx, query, args...)
|
||||
if err != nil {
|
||||
return nil, ErrUnavailable
|
||||
|
||||
Reference in New Issue
Block a user