Skip to content

Commit 0ef2e72

Browse files
committed
hotfix: do-not-check-count-exist-today
1 parent 9474d73 commit 0ef2e72

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/domain/eco-verification/eco-verification.service.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,25 @@ export class EcoVerificationService {
7575
throw new BusinessException(ErrorType.ECO_VERIFICATION_NOT_FOUND);
7676
}
7777

78-
const existsToday = await this.memberEcoVerificationRepo
79-
.createQueryBuilder('mev')
80-
.where('mev.memberId = :memberId', { memberId })
81-
.andWhere('mev.ecoVerificationId = :ecoVerificationId', {
82-
ecoVerificationId: ecoVerificationId,
83-
})
84-
.andWhere('mev.status != :status', {
85-
status: EcoVerificationStatus.REJECTED,
86-
})
87-
.andWhere('DATE(mev.createdAt) = :today', {
88-
today: tz().format('YYYY-MM-DD'),
89-
})
90-
.getExists();
91-
92-
if (existsToday) {
93-
throw new BusinessException(
94-
ErrorType.ALREADY_APPROVED_ECO_VERIFICATION_TODAY,
95-
);
96-
}
78+
// const existsToday = await this.memberEcoVerificationRepo
79+
// .createQueryBuilder('mev')
80+
// .where('mev.memberId = :memberId', { memberId })
81+
// .andWhere('mev.ecoVerificationId = :ecoVerificationId', {
82+
// ecoVerificationId: ecoVerificationId,
83+
// })
84+
// .andWhere('mev.status != :status', {
85+
// status: EcoVerificationStatus.REJECTED,
86+
// })
87+
// .andWhere('DATE(mev.createdAt) = :today', {
88+
// today: tz().format('YYYY-MM-DD'),
89+
// })
90+
// .getExists();
91+
//
92+
// if (existsToday) {
93+
// throw new BusinessException(
94+
// ErrorType.ALREADY_APPROVED_ECO_VERIFICATION_TODAY,
95+
// );
96+
// }
9797

9898
const { isValid, reason } = await this.openaiService.verifyImageByType(
9999
imageUrl,

0 commit comments

Comments
 (0)