Skip to content

Commit

Permalink
Update backend/incident_reader.go
Browse files Browse the repository at this point in the history
Co-authored-by: yuu <72334350+YogiPristiawan@users.noreply.github.com>
  • Loading branch information
aldy505 and YogiPristiawan authored Sep 9, 2024
1 parent 0ba858a commit 3a8cced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/incident_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (r *IncidentDataReader) ReadRelatedIncidents(ctx context.Context, incidentT
}
}()

rows, err := dbCon.QueryContext(ctx, "SELECT monitor_id, title, description, timestamp, severity, status FROM incident_data WHERE monitor_id = ? AND title = ? ORDER BY created_by DESC", monitorID, incidentTitle)
rows, err := dbCon.QueryContext(ctx, "SELECT monitor_id, title, description, timestamp, severity, status FROM incident_data WHERE monitor_id = ? AND title = ? ORDER BY created_at DESC", monitorID, incidentTitle)
if err != nil {
return nil, fmt.Errorf("failed to read related incidents: %w", err)
}
Expand Down

0 comments on commit 3a8cced

Please sign in to comment.