mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Rename sessions table to user_sessions
This commit is contained in:
parent
27196589fb
commit
58acd1d5e3
10 changed files with 153 additions and 147 deletions
|
@ -18,7 +18,7 @@ func (c *Controller) ShowSessions(ctx *core.Context, request *core.Request, resp
|
|||
return
|
||||
}
|
||||
|
||||
sessions, err := c.store.Sessions(user.ID)
|
||||
sessions, err := c.store.UserSessions(user.ID)
|
||||
if err != nil {
|
||||
response.HTML().ServerError(err)
|
||||
return
|
||||
|
@ -42,7 +42,7 @@ func (c *Controller) RemoveSession(ctx *core.Context, request *core.Request, res
|
|||
return
|
||||
}
|
||||
|
||||
err = c.store.RemoveSessionByID(user.ID, sessionID)
|
||||
err = c.store.RemoveUserSessionByID(user.ID, sessionID)
|
||||
if err != nil {
|
||||
logger.Error("[Controller:RemoveSession] %v", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue