From 189c094b016fcf95845c530829521e64e229c7b1 Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Tue, 24 Sep 2024 11:33:41 +0800 Subject: [PATCH] feat: update RegisterUser use adminToken. (#574) * update dockerfile contents. * update field. * feat: update RegisterUser use adminToken. --- internal/api/chat/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/chat/chat.go b/internal/api/chat/chat.go index 6ab2e4bb..94fd36d4 100644 --- a/internal/api/chat/chat.go +++ b/internal/api/chat/chat.go @@ -132,7 +132,7 @@ func (o *Api) RegisterUser(c *gin.Context) { FaceURL: req.User.FaceURL, CreateTime: time.Now().UnixMilli(), } - err = o.imApiCaller.RegisterUser(c, []*sdkws.UserInfo{userInfo}) + err = o.imApiCaller.RegisterUser(apiCtx, []*sdkws.UserInfo{userInfo}) if err != nil { apiresp.GinError(c, err) return