Skip to content

Commit

Permalink
Fix template creation API returning incorrect response
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Aug 1, 2020
1 parent d919766 commit 2587d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2587d67

Please sign in to comment.