diff options
Diffstat (limited to 'internal/api/auth/authorize.go')
-rw-r--r-- | internal/api/auth/authorize.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/auth/authorize.go b/internal/api/auth/authorize.go index f8978de92..4977ae4f2 100644 --- a/internal/api/auth/authorize.go +++ b/internal/api/auth/authorize.go @@ -75,8 +75,8 @@ func (m *Module) AuthorizeGETHandler(c *gin.Context) { return } - app := >smodel.Application{} - if err := m.db.GetWhere(c.Request.Context(), []db.Where{{Key: sessionClientID, Value: clientID}}, app); err != nil { + app, err := m.db.GetApplicationByClientID(c.Request.Context(), clientID) + if err != nil { m.clearSession(s) safe := fmt.Sprintf("application for %s %s could not be retrieved", sessionClientID, clientID) var errWithCode gtserror.WithCode |