diff --git a/miner/mining.go b/miner/mining.go index 685ed2b..9fe41ab 100644 --- a/miner/mining.go +++ b/miner/mining.go @@ -51,6 +51,7 @@ func mine(now *time.Time, usr *user, t0Ref, tMinus1Ref *referral) (updatedUser * (!updatedUser.ReferralsCountChangeGuardUpdatedAt.IsNil() && !updatedUser.MiningSessionSoloStartedAt.IsNil() && updatedUser.ReferralsCountChangeGuardUpdatedAt.Equal(*updatedUser.MiningSessionSoloStartedAt.Time)) { + updatedUser.BalanceLastUpdatedAt = now // We need to update ReferralsCountChangeGuardUpdatedAt last time to avoid ErrDuplicate on next sessions return updatedUser, shouldGenerateHistory, IDT0Changed, 0, 0 } diff --git a/tokenomics/kyc.go b/tokenomics/kyc.go index 86be0aa..2ffd865 100644 --- a/tokenomics/kyc.go +++ b/tokenomics/kyc.go @@ -496,6 +496,7 @@ func (r *repository) overrideKYCStateWithEskimoKYCState(ctx context.Context, use state.KYCState = usr.KYCState usr.HideRanking = buildHideRanking(usr.HiddenProfileElements) usr.CreatedAt = time.New(usr.AccountCreatedAt) + usr.ProfilePictureName = r.pictureClient.StripDownloadURL(usr.ProfilePictureName) return usr.KycFaceAvailable, multierror.Append( errors.Wrapf(r.updateUsernameKeywords(ctx, state.ID, state.Username, usr.Username), "failed to updateUsernameKeywords for oldUser:%#v, user:%#v", state, usr), //nolint:lll // .