From 4827fbdd1044c65613441e0dbcbb175140de1eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8A=E3=81=95=E3=82=80=E3=81=AE=E3=81=B2=E3=81=A8?= <46447427+samunohito@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:03:21 +0900 Subject: [PATCH] fix favorite -> favorited --- packages/backend/src/core/entities/ChannelEntityService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/core/entities/ChannelEntityService.ts b/packages/backend/src/core/entities/ChannelEntityService.ts index 1a789bc434..9ee918bea3 100644 --- a/packages/backend/src/core/entities/ChannelEntityService.ts +++ b/packages/backend/src/core/entities/ChannelEntityService.ts @@ -66,7 +66,7 @@ export class ChannelEntityService { } let isFollowing = false; - let isFavorite = false; + let isFavorited = false; let isMuting = false; if (me) { isFollowing = opts?.followings?.has(channel.id) ?? await this.channelFollowingsRepository.exists({ @@ -76,7 +76,7 @@ export class ChannelEntityService { }, }); - isFavorite = opts?.favorites?.has(channel.id) ?? await this.channelFavoritesRepository.exists({ + isFavorited = opts?.favorites?.has(channel.id) ?? await this.channelFavoritesRepository.exists({ where: { userId: me.id, channelId: channel.id, @@ -121,7 +121,7 @@ export class ChannelEntityService { ...(me ? { isFollowing, - isFavorite, + isFavorited, isMuting, hasUnreadNote: false, // 後方互換性のため } : {}),