🔧 거부 쿼리 user_id 컬럼명 수정
Some checks failed
SonarQube Analysis / SonarQube Scan (push) Has been cancelled

- id → user_id
- access_level='pending' → is_active=FALSE
- 모든 쿼리가 실제 DB 스키마에 맞춤
This commit is contained in:
Hyungi Ahn
2025-10-14 07:42:51 +09:00
parent 5a3ee33e9b
commit 745ecaf3a3

View File

@@ -268,7 +268,7 @@ async def reject_signup(
# 승인 대기 사용자 삭제
delete_query = text("""
DELETE FROM users
WHERE id = :user_id AND access_level = 'pending'
WHERE user_id = :user_id AND is_active = FALSE
RETURNING username, name
""")