Skip to content

Commit

Permalink
Update packages/backend/src/core/entities/FlashEntityService.ts
Browse files Browse the repository at this point in the history
Co-authored-by: zyoshoka <[email protected]>
  • Loading branch information
syuilo and zyoshoka authored Oct 8, 2024
1 parent 9858e12 commit d021396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/entities/FlashEntityService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class FlashEntityService {
// { schema: 'UserDetailed' } すると無限ループするので注意
const user = hint?.packedUser ?? await this.userEntityService.pack(flash.user ?? flash.userId, me);

let isLiked = false;
let isLiked = undefined;
if (meId) {
isLiked = hint?.likedFlashIds
? hint.likedFlashIds.includes(flash.id)
Expand Down

0 comments on commit d021396

Please sign in to comment.