diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index 09ae0538..bf4f79a3 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -123,10 +123,6 @@ jobs: uses: actions/setup-go@v3 with: go-version: ${{ steps.findLatestGoVersion.outputs.latestGoVersion }} - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - version: latest - name: Slack Notification For Failure/Cancellation if: ${{ github.event_name == 'push' && (failure() || cancelled()) }} uses: rtCamp/action-slack-notify@v2 diff --git a/users/users_referrals.go b/users/users_referrals.go index c63b929d..04824df6 100644 --- a/users/users_referrals.go +++ b/users/users_referrals.go @@ -52,6 +52,11 @@ func (r *repository) GetReferrals(ctx context.Context, userID string, referralTy AND referrals.username != referrals.id AND referrals.referred_by != referrals.id` case ContactsReferrals: + if true { + return &Referrals{ + Referrals: make([]*MinimalUserProfile, 0, 0), + }, nil + } referralTypeJoin = ` JOIN USERS referrals ON NULLIF(referrals.phone_number_hash,'') IS NOT NULL @@ -177,7 +182,18 @@ func (r *repository) GetReferralAcquisitionHistory(ctx context.Context, userID s nowNanos := now.UnixNano() nsSinceMidnight := NanosSinceMidnight(now) pastNanos := stdlibtime.Unix(0, nowNanos).UTC().Add(-days * 24 * stdlibtime.Hour).Add(-nsSinceMidnight).UnixNano() + if true { + result := make([]*ReferralAcquisition, 0, daysNumber) + for i := 0; i < int(daysNumber); i++ { + result = append(result, &ReferralAcquisition{ + Date: time.New(now.Add(-stdlibtime.Duration(i) * 24 * stdlibtime.Hour)), + T1: 0, + T2: 0, + }) + } + return result, nil + } sql := ` SELECT * FROM (