Merge branch 'develop' into schedule-note

This commit is contained in:
かっこかり 2023-11-23 15:52:52 +09:00 committed by GitHub
commit 8d28c2f9d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 806 additions and 339 deletions

View file

@ -89,6 +89,9 @@ export class RoleService implements OnApplicationShutdown {
@Inject(DI.redis)
private redisClient: Redis.Redis,
@Inject(DI.redisForTimelines)
private redisForTimelines: Redis.Redis,
@Inject(DI.redisForSub)
private redisForSub: Redis.Redis,
@ -479,7 +482,7 @@ export class RoleService implements OnApplicationShutdown {
public async addNoteToRoleTimeline(note: Packed<'Note'>): Promise<void> {
const roles = await this.getUserRoles(note.userId);
const redisPipeline = this.redisClient.pipeline();
const redisPipeline = this.redisForTimelines.pipeline();
for (const role of roles) {
this.funoutTimelineService.push(`roleTimeline:${role.id}`, note.id, 1000, redisPipeline);