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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@@ -38,8 +38,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||
|
||||
@Inject(DI.channelFollowingsRepository)
|
||||
private channelFollowingsRepository: ChannelFollowingsRepository,
|
||||
|
||||
private globalEventService: GlobalEventService,
|
||||
) {
|
||||
super(meta, paramDef, async (ps, me) => {
|
||||
const channel = await this.channelsRepository.findOneBy({
|
||||
@@ -54,8 +52,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||
followerId: me.id,
|
||||
followeeId: channel.id,
|
||||
});
|
||||
|
||||
this.globalEventService.publishUserEvent(me.id, 'unfollowChannel', channel);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user