mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-03 05:23:48 +00:00
refactor
This commit is contained in:
@@ -10,7 +10,7 @@ func handleGetTeams(r *fastglue.Request) error {
|
||||
var (
|
||||
app = r.Context.(*App)
|
||||
)
|
||||
teams, err := app.userDB.GetTeams()
|
||||
teams, err := app.teamMgr.GetAll()
|
||||
if err != nil {
|
||||
return r.SendErrorEnvelope(http.StatusInternalServerError, "Something went wrong, try again later.", nil, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user