Commit 6694d7b3 authored by 神楽坂玲奈's avatar 神楽坂玲奈

index name

parent b9159b32
Pipeline #8118 failed with stages
in 1 minute and 18 seconds
...@@ -12,7 +12,8 @@ import { ElasticsearchService } from '@nestjs/elasticsearch'; ...@@ -12,7 +12,8 @@ import { ElasticsearchService } from '@nestjs/elasticsearch';
@Injectable() @Injectable()
export class MessageService export class MessageService
extends ConsoleLogger extends ConsoleLogger
implements OnApplicationBootstrap { implements OnApplicationBootstrap
{
constructor( constructor(
@InjectCenterAccount() @InjectCenterAccount()
private readonly centerAccount: string, private readonly centerAccount: string,
...@@ -55,7 +56,7 @@ export class MessageService ...@@ -55,7 +56,7 @@ export class MessageService
); );
await this.elasticsearchService.index({ await this.elasticsearchService.index({
index: `user_message_${session.selfId}`, index: `messages`,
body: { body: {
selfId: session.selfId, selfId: session.selfId,
type: session.subtype as string, type: session.subtype as string,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment