fixed query

This commit is contained in:
2026-02-20 14:18:25 +08:00
parent b255873767
commit ed2eb67912
+1 -1
View File
@@ -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)
}