🔧 거부 쿼리 user_id 컬럼명 수정
Some checks failed
SonarQube Analysis / SonarQube Scan (push) Has been cancelled
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:
@@ -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
|
||||
""")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user