revert
This commit is contained in:
parent
08e4fedf6c
commit
6ad3f07d48
|
@ -113,17 +113,4 @@ export class FanoutTimelineService {
|
||||||
public purge(name: FanoutTimelineName) {
|
public purge(name: FanoutTimelineName) {
|
||||||
return this.redisForTimelines.del('list:' + name);
|
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}`),
|
|
||||||
]));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue