Skip to content

Commit

Permalink
fix: update response get onboarding status (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
phucledien authored Sep 12, 2023
1 parent d671040 commit e6eb3ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/entities/onboarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pkg/service/mochiprofile/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ type EvmAssociatedAccount struct {
}

type OnboardingStatusResponse struct {
DidOnboarding bool `json:"did_onboarding"`
DidOnboardingTelegram bool `json:"did_onboarding_telegram"`
}

0 comments on commit e6eb3ad

Please sign in to comment.