From e6eb3addf487664b95556543eba0a0e0e53b1bca Mon Sep 17 00:00:00 2001 From: Le Dien Phuc Date: Tue, 12 Sep 2023 10:30:52 +0700 Subject: [PATCH] fix: update response get onboarding status (#1171) --- pkg/entities/onboarding.go | 2 +- pkg/service/mochiprofile/model.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/entities/onboarding.go b/pkg/entities/onboarding.go index 0980cd68..160ac029 100644 --- a/pkg/entities/onboarding.go +++ b/pkg/entities/onboarding.go @@ -19,7 +19,7 @@ func (e *Entity) OnboardingStart(req request.OnboardingStartRequest) (*response. e.log.Fields(logger.Fields{"profileId": req.ProfileId}).Error(err, "[Entity.OnboardingStart] svc.MochiProfile.GetOnboardingStatus() failed") return nil, err } - if onboardingStatus.DidOnboarding { + if onboardingStatus.DidOnboardingTelegram { return &response.OnboardingStartData{ UserAlreadyStarted: true, Reward: nil, diff --git a/pkg/service/mochiprofile/model.go b/pkg/service/mochiprofile/model.go index 748a1143..216bd559 100644 --- a/pkg/service/mochiprofile/model.go +++ b/pkg/service/mochiprofile/model.go @@ -60,5 +60,5 @@ type EvmAssociatedAccount struct { } type OnboardingStatusResponse struct { - DidOnboarding bool `json:"did_onboarding"` + DidOnboardingTelegram bool `json:"did_onboarding_telegram"` }