Skip to content

Commit 1b8086b

Browse files
committed
fix: 쿼리 파라미터 오류 수정
fix: 쿼리 파라미터 오류 수정 - userStatsQuery에 불필요한 ateRange 파라미터 제거
1 parent ab21edc commit 1b8086b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repositories/svg.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class SvgRepository {
2828
WHERE u.username = $1
2929
GROUP BY u.username
3030
`;
31-
const userStatsResult = await this.pool.query(userStatsQuery, [username, dateRange]);
31+
const userStatsResult = await this.pool.query(userStatsQuery, [username]);
3232

3333
if (userStatsResult.rows.length === 0) {
3434
throw new NotFoundError(`사용자를 찾을 수 없습니다: ${username}`);

0 commit comments

Comments
 (0)