chore: update visitor view buttons

This commit is contained in:
boojack
2022-07-09 12:00:26 +08:00
parent 7418d2965d
commit 6a8c559e8c
10 changed files with 47 additions and 53 deletions

View File

@ -66,7 +66,7 @@ func (s *Server) registerShortcutRoutes(g *echo.Group) {
} else {
userID, ok := c.Get(getUserIDContextKey()).(int)
if !ok {
return echo.NewHTTPError(http.StatusBadRequest, "Missing creatorId to find shortcut")
return echo.NewHTTPError(http.StatusBadRequest, "Missing user id to find shortcut")
}
shortcutFind.CreatorID = &userID