UpdateAssignment sets assigned_to_user_id.
(ctx context.Context, id, userID string)
| 293 | |
| 294 | // UpdateAssignment sets assigned_to_user_id. |
| 295 | func (s *AlertsStore) UpdateAssignment(ctx context.Context, id, userID string) error { |
| 296 | d := s.db.DB(ctx) |
| 297 | return d.Queries.UpdateAlertAssignment(ctx, db.UpdateAlertAssignmentParams{ |
| 298 | ID: id, |
| 299 | AssignedToUserID: &userID, |
| 300 | }) |
| 301 | } |
| 302 | |
| 303 | // UpdateUnassign clears assignment. |
| 304 | func (s *AlertsStore) UpdateUnassign(ctx context.Context, id string) error { |
no test coverage detected