Unverified Commit a62c982a authored by Hyoban's avatar Hyoban Committed by GitHub

fix: cannot register in production (#91)

parent 08210d55
......@@ -29,8 +29,10 @@ func (s *Server) registerSystemRoutes(g *echo.Group) {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find owner user").SetInternal(err)
}
// data desensitize
ownerUser.OpenID = ""
if ownerUser != nil {
// data desensitize
ownerUser.OpenID = ""
}
systemStatus := api.SystemStatus{
Owner: ownerUser,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment