Quellcode durchsuchen

Fix template creation API returning incorrect response

Kailash Nadh vor 5 Jahren
Ursprung
Commit
2587d67765
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      templates.go

+ 1 - 1
templates.go

@@ -149,7 +149,7 @@ func handleCreateTemplate(c echo.Context) error {
 	// Hand over to the GET handler to return the last insertion.
 	c.SetParamNames("id")
 	c.SetParamValues(fmt.Sprintf("%d", newID))
-	return c.JSON(http.StatusOK, handleGetLists(c))
+	return handleGetTemplates(c)
 }
 
 // handleUpdateTemplate handles template modification.