~sircmpwn/hire.sr.ht

c0a627fd52a3f8747ada178c4b0952eb76fd65dc — Willow Barraco 1 year, 1 month ago ffa85ff master
Rename local variable name

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
1 files changed, 6 insertions(+), 6 deletions(-)

M api/graph/schema.resolvers.go
M api/graph/schema.resolvers.go => api/graph/schema.resolvers.go +6 -6
@@ 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,