This commit is contained in:
tamaina 2025-07-14 14:36:07 +09:00
parent 08e4fedf6c
commit 6ad3f07d48
1 changed files with 0 additions and 13 deletions

View File

@ -113,17 +113,4 @@ export class FanoutTimelineService {
public purge(name: FanoutTimelineName) {
return this.redisForTimelines.del('list:' + name);
}
@bindThis
public purgeByUserIds(userIds: MiUser['id'][]) {
return Promise.all(userIds.flatMap(userId => [
this.purge(`homeTimeline:${userId}`),
this.purge(`homeTimelineWithFiles:${userId}`),
this.purge(`localTimelineWithReplyTo:${userId}`),
this.purge(`userTimeline:${userId}`),
this.purge(`userTimelineWithFiles:${userId}`),
this.purge(`userTimelineWithReplies:${userId}`),
this.purge(`userTimelineWithChannel:${userId}`),
]));
}
}