session sign out
parent
d291a2dd46
commit
f8022c6046
|
@ -25,6 +25,8 @@ func SignOutSession(c *fiber.Ctx) error {
|
|||
database.DB.Delete(&structs.UserSession{}, "id = ?", userSession.Id)
|
||||
|
||||
socketclients.CloseAllUserSessionConnections(userSession.Id)
|
||||
|
||||
socketclients.UpdateUserSessionsForUser(userSession.UserId, userSession.Id)
|
||||
}
|
||||
|
||||
return c.SendStatus(fiber.StatusOK)
|
||||
|
|
Loading…
Reference in New Issue