fixed query
This commit is contained in:
+1
-1
@@ -528,7 +528,7 @@ func RevokeSession(sessionID string) error {
|
||||
func RevokeAllUserSessions(userID string) error {
|
||||
ctx := context.Background()
|
||||
|
||||
rows, err := db.DB.Query("SELECT id FROM jwt_sessions WHERE user_id = ? AND is_revoked = false", userID)
|
||||
rows, err := db.DB.Query("SELECT jwt_sessions_id FROM jwt_sessions WHERE user_id = ? AND is_revoked = false", userID)
|
||||
if err != nil {
|
||||
return fmt.Errorf(errFormatWithContext, errMsgFailedToGetUserSessions, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user