Skip to content

Commit

Permalink
Update follow.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Sep 17, 2022
1 parent f24e54f commit 8f77515
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/backend/src/server/api/endpoints/channels/follow.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Inject, Injectable } from '@nestjs/common';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { ChannelFollowingsRepository, Channels } from '@/models/index.js';
import { ChannelFollowingsRepository, ChannelsRepository } from '@/models/index.js';
import { IdService } from '@/core/IdService.js';
import { GlobalEventService } from '@/core/GlobalEventService.js';
import { DI } from '@/di-symbols.js';
Expand Down Expand Up @@ -34,6 +34,9 @@ export const paramDef = {
@Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> {
constructor(
@Inject(DI.channelsRepository)
private channelsRepository: ChannelsRepository,

@Inject(DI.channelFollowingsRepository)
private channelFollowingsRepository: ChannelFollowingsRepository,

Expand Down

0 comments on commit 8f77515

Please sign in to comment.