mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[performance] remove last of relational queries to instead rely on caches (#2091)
This commit is contained in:
@@ -107,8 +107,8 @@ func (m *Module) CallbackGETHandler(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(), sessionClientID)
|
||||
if err != nil {
|
||||
m.clearSession(s)
|
||||
safe := fmt.Sprintf("application for %s %s could not be retrieved", sessionClientID, clientID)
|
||||
var errWithCode gtserror.WithCode
|
||||
|
Reference in New Issue
Block a user