From a1b243bbda4900ac67631feaad858479208080bf Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 4 Jun 2023 17:53:24 +0000 Subject: [PATCH] fix --- packages/backend/src/core/entities/ChannelEntityService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/entities/ChannelEntityService.ts b/packages/backend/src/core/entities/ChannelEntityService.ts index 4522dc7919..2b768ead36 100644 --- a/packages/backend/src/core/entities/ChannelEntityService.ts +++ b/packages/backend/src/core/entities/ChannelEntityService.ts @@ -2,6 +2,7 @@ import { Inject, Injectable } from '@nestjs/common'; import { DI } from '@/di-symbols.js'; import type { ChannelFavoritesRepository, ChannelFollowingsRepository, ChannelsRepository, DriveFilesRepository, NoteUnreadsRepository, NotesRepository } from '@/models/index.js'; import type { Packed } from 'misskey-js'; +import type { Serialized } from 'schema-type'; import type { } from '@/models/entities/Blocking.js'; import type { User } from '@/models/entities/User.js'; import type { Channel } from '@/models/entities/Channel.js'; @@ -41,7 +42,7 @@ export class ChannelEntityService { src: Channel['id'] | Channel, me?: { id: User['id'] } | null | undefined, detailed?: boolean, - ): Promise> { + ): Promise>> { const channel = typeof src === 'object' ? src : await this.channelsRepository.findOneByOrFail({ id: src }); const meId = me ? me.id : null;