Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
overthestream committed Aug 27, 2024
1 parent 7319861 commit 072bf93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/domain/blurting/blurting.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class BlurtingController {
@User() userPayload: JwtPayload,
): Promise<ArrowResultResponseDto> {
const { id } = userPayload;
this.blurtingService.getArrows(id);

return this.blurtingService.getArrows(id);
}

Expand Down
4 changes: 2 additions & 2 deletions src/domain/blurting/blurting.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ export class BlurtingService {
if (!user.group)
return { matching: false, matchedWith: null, iReceived: [] };

let matchedWith;
let matchedWith = null;
let matching = false;
const question = await this.questionRepository.findLatestByGroup(
user.group.id,
Expand Down Expand Up @@ -550,7 +550,7 @@ export class BlurtingService {
);
if (!matching) {
let user;
if (sendArrow.to) {
if (sendArrow && sendArrow.to) {
const images = await this.userService.getUserImages(sendArrow.to.id);
user = await this.userService.getUserProfile(sendArrow.to.id, images);
}
Expand Down

0 comments on commit 072bf93

Please sign in to comment.