diff --git a/graphql2/graphqlapp/destinationtypes.go b/graphql2/graphqlapp/destinationtypes.go index e6caced4ac..a89618cd8a 100644 --- a/graphql2/graphqlapp/destinationtypes.go +++ b/graphql2/graphqlapp/destinationtypes.go @@ -126,7 +126,7 @@ func (q *Query) DestinationFieldValueName(ctx context.Context, input graphql2.De func (q *Query) DestinationFieldSearch(ctx context.Context, input graphql2.DestinationFieldSearchInput) (*graphql2.FieldValueConnection, error) { favFirst := true - + switch input.FieldID { case fieldSlackChanID: res, err := q.SlackChannels(ctx, &graphql2.SlackChannelSearchOptions{ @@ -424,10 +424,10 @@ func (q *Query) DestinationTypes(ctx context.Context) ([]graphql2.DestinationTyp }}, }, { - Type: destRotation, - Name: "Rotation", - Enabled: true, - IsEPTarget: true, + Type: destRotation, + Name: "Rotation", + Enabled: true, + IsEPTarget: true, RequiredFields: []graphql2.DestinationFieldConfig{{ FieldID: fieldRotationID, LabelSingular: "Rotation", @@ -437,11 +437,11 @@ func (q *Query) DestinationTypes(ctx context.Context) ([]graphql2.DestinationTyp }}, }, { - Type: destSchedule, - Name: "Schedule", - Enabled: true, - IsEPTarget: true, - IsSchedOnCallNotify: true, + Type: destSchedule, + Name: "Schedule", + Enabled: true, + IsEPTarget: true, + IsSchedOnCallNotify: true, RequiredFields: []graphql2.DestinationFieldConfig{{ FieldID: fieldScheduleID, LabelSingular: "Schedule", @@ -451,11 +451,11 @@ func (q *Query) DestinationTypes(ctx context.Context) ([]graphql2.DestinationTyp }}, }, { - Type: destUser, - Name: "User", - Enabled: true, - IsEPTarget: true, - IsSchedOnCallNotify: true, + Type: destUser, + Name: "User", + Enabled: true, + IsEPTarget: true, + IsSchedOnCallNotify: true, RequiredFields: []graphql2.DestinationFieldConfig{{ FieldID: fieldUserID, LabelSingular: "User",