fix: replace deprecated method with a correct one
This commit is contained in:
		
				
					committed by
					
						
						Jordan Knott
					
				
			
			
				
	
			
			
			
						parent
						
							7b6624ecc3
						
					
				
				
					commit
					ea767f3d19
				
			@@ -44,7 +44,7 @@ func NewHandler(repo db.Repository) http.Handler {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		var subjectID uuid.UUID
 | 
							var subjectID uuid.UUID
 | 
				
			||||||
		in := graphql.GetResolverContext(ctx).Args["input"]
 | 
							in := graphql.GetFieldContext(ctx).Args["input"]
 | 
				
			||||||
		val := reflect.ValueOf(in) // could be any underlying type
 | 
							val := reflect.ValueOf(in) // could be any underlying type
 | 
				
			||||||
		if val.Kind() == reflect.Ptr {
 | 
							if val.Kind() == reflect.Ptr {
 | 
				
			||||||
			val = reflect.Indirect(val)
 | 
								val = reflect.Indirect(val)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user