diff --git a/server/feishu-sync/internal/logic/user_webhook.go b/server/feishu-sync/internal/logic/user_webhook.go index 04263265..9d82d2dd 100644 --- a/server/feishu-sync/internal/logic/user_webhook.go +++ b/server/feishu-sync/internal/logic/user_webhook.go @@ -115,7 +115,7 @@ func (l *WebhookLogic) OnUserChange(data []byte) error { feiShuMsgCreateTime := time.UnixMilli(feiShuMsgCreateTimeInt64) departmentIds := strings.Join(msg.Event.Object.DepartmentIds, ",") joinTime := time.Unix(msg.Event.Object.Joint64ime, 0) - return l.svcCtx.AllModels.LdapUsers.CreateOrUpdate(l.ctx, msg.Header.AppId, msg.Event.Object.OpenId, &gmodel.LdapUsers{ + return l.svcCtx.AllModels.LdapUsers.CreateOrUpdate(l.ctx, msg.Event.Object.OpenId, &gmodel.LdapUsers{ UserId: &msg.Event.Object.UserId, OpenId: &msg.Event.Object.OpenId, UnionId: &msg.Event.Object.UnionId,