diff pkg/controllers/routes.go @ 1472:702671b76eae bulkreview

Import bulk review: Use an slice of models.Review as input.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 30 Nov 2018 09:39:59 +0100
parents 286a3306f6bf
children d349618c6b50
line wrap: on
line diff
--- a/pkg/controllers/routes.go	Fri Nov 30 09:32:01 2018 +0100
+++ b/pkg/controllers/routes.go	Fri Nov 30 09:39:59 2018 +0100
@@ -183,7 +183,7 @@
 	})).Methods(http.MethodGet)
 
 	api.Handle("/imports", waterwayAdmin(&JSONHandler{
-		Input:  func() interface{} { return []*models.Review{} },
+		Input:  func() interface{} { return []models.Review{} },
 		Handle: reviewImports,
 	})).Methods(http.MethodPatch)