This commit is contained in:
Leufolium 2024-06-13 13:11:51 +08:00
parent 32b5509f04
commit 2422bce16b
1 changed files with 3 additions and 2 deletions

View File

@ -46,6 +46,7 @@ func (es *ElasticSearch) CreateStreamerAcct(ctx context.Context, streameraccts [
func (es *ElasticSearch) UpdateStreamerAcct(ctx context.Context, streameracct *dbstruct.EsStreamerAcct) error { func (es *ElasticSearch) UpdateStreamerAcct(ctx context.Context, streameracct *dbstruct.EsStreamerAcct) error {
_, err := es.clientMix.Update().Index(es.getIndexStreamerAcct()).Id(fmt.Sprint(streameracct.Mid)).Doc(map[string]any{ _, err := es.clientMix.Update().Index(es.getIndexStreamerAcct()).Id(fmt.Sprint(streameracct.Mid)).Doc(map[string]any{
"name": streameracct.Name, "name": streameracct.Name,
"pinyin": streameracct.PinYin,
"ut": streameracct.Ut, "ut": streameracct.Ut,
}).Do(ctx) }).Do(ctx)
return err return err