Skip to content

Commit

Permalink
Merge pull request #39 from ShinBaedal/hotfix/v1.0.1
Browse files Browse the repository at this point in the history
Hotfix/v1.0.1
  • Loading branch information
pjp0704 authored Nov 25, 2021
2 parents d20428b + 5e80567 commit 360c147
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shinbaedal-backend",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"author": "",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class AuthService {
const cache = await this.cacheManager.get<string | undefined>(email);
const isExist =
(await this.clientRepository.count({ where: { email } })) +
(await this.clientRepository.count({ where: { email } }));
(await this.ownerRepository.count({ where: { email } }));
if (cache === 'DONE' || isExist) throw new ConflictException();

const number = crypto.randomInt(0, 999999).toString().padStart(6, '0');
Expand Down
2 changes: 1 addition & 1 deletion src/review/review.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class ReviewService {
content: review.content,
rate: review.rate,
reply: {
content: review.replyId.content,
content: review.replyId?.content,
},
}),
);
Expand Down

0 comments on commit 360c147

Please sign in to comment.