getDb()가 async(Promise 반환)인데 await 없이 호출하여 non-admin 사용자 API 호출 시 db.query is not a function 에러 발생. admin은 L18에서 조기 리턴하여 영향 없었음. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
getDb()가 async(Promise 반환)인데 await 없이 호출하여 non-admin 사용자 API 호출 시 db.query is not a function 에러 발생. admin은 L18에서 조기 리턴하여 영향 없었음. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>