fix: cannot register in production (#91)

This commit is contained in:
Hyoban 2022-06-27 19:11:56 +08:00 committed by GitHub
parent 08210d55c3
commit a62c982a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,