enhance(backend): improve cache
This commit is contained in:
@@ -41,7 +41,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||
private channelFollowingsRepository: ChannelFollowingsRepository,
|
||||
|
||||
private idService: IdService,
|
||||
private globalEventService: GlobalEventService,
|
||||
) {
|
||||
super(meta, paramDef, async (ps, me) => {
|
||||
const channel = await this.channelsRepository.findOneBy({
|
||||
@@ -58,8 +57,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||
followerId: me.id,
|
||||
followeeId: channel.id,
|
||||
});
|
||||
|
||||
this.globalEventService.publishUserEvent(me.id, 'followChannel', channel);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user