Skip to content

Commit

Permalink
arr
Browse files Browse the repository at this point in the history
  • Loading branch information
overthestream committed Aug 27, 2024
1 parent 2044b61 commit 6f89d1f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/domain/blurting/blurting.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,12 +549,16 @@ export class BlurtingService {
}),
);
if (!matching) {
const images = await this.userService.getUserImages(sendArrow.to.id);
const user = await this.userService.getUserProfile(
sendArrow.to.id,
images,
);
return { matching, matchedWith: user, iReceived: receiveDto };
let user;
if (sendArrow.to) {
const images = await this.userService.getUserImages(sendArrow.to.id);
user = await this.userService.getUserProfile(sendArrow.to.id, images);
}
return {
matching,
matchedWith: sendArrow.to ? user : null,
iReceived: receiveDto,
};
}

return { matching, matchedWith, iReceived: receiveDto };
Expand Down

0 comments on commit 6f89d1f

Please sign in to comment.