Skip to content
Snippets Groups Projects
Commit ed0cc443 authored by syuilo's avatar syuilo
Browse files

fix(backend): ロールタイムラインが保存されない問題を修正

parent b65fd349
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
-
### Server
-
- Fix: ロールタイムラインが保存されない問題を修正
## 2023.11.1
......
......@@ -87,6 +87,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,
......@@ -476,7 +479,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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment