@@ 55,11 55,11 @@ func (r *mutationResolver) CreateProfile(ctx context.Context, input map[string]i
WithField(`displayName`)
profile.DisplayName = name
})
- validation.OptionalString(`contactURL`, func(name string) {
- validation.Expect(len(name) <= 256,
+ validation.OptionalString(`contactURL`, func(contactURL string) {
+ validation.Expect(len(contactURL) <= 256,
"Contact url must be less than 257 characters").
WithField(`contactURL`)
- profile.DisplayName = name
+ profile.DisplayName = contactURL
})
validation.OptionalString(`snippet`, func(snippet string) {
validation.Expect(len(snippet) <= 1024,
@@ 228,11 228,11 @@ func (r *mutationResolver) UpdateProfile(ctx context.Context, id int, input map[
WithField(`displayName`)
update = update.Set(`display_name`, name)
})
- validation.OptionalString(`contactURL`, func(name string) {
- validation.Expect(len(name) <= 256,
+ validation.OptionalString(`contactURL`, func(contactURL string) {
+ validation.Expect(len(contactURL) <= 256,
"Contact URL must be less than 257 characters").
WithField(`contactURL`)
- update = update.Set(`contact_url`, name)
+ update = update.Set(`contact_url`, contactURL)
})
validation.OptionalString(`snippet`, func(snippet string) {
validation.Expect(len(snippet) <= 1024,