From 3308517b8293c6a688aa2f7001b8ae75be1c0bbd Mon Sep 17 00:00:00 2001 From: Mike Wu Date: Tue, 2 Jul 2024 21:42:04 +0700 Subject: [PATCH] fix(PRs): cut-off via merged date --- src/lib/reporting/send-contributor-pull-requests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/reporting/send-contributor-pull-requests.ts b/src/lib/reporting/send-contributor-pull-requests.ts index 82d5fbfd..5565dd5b 100644 --- a/src/lib/reporting/send-contributor-pull-requests.ts +++ b/src/lib/reporting/send-contributor-pull-requests.ts @@ -53,7 +53,7 @@ export async function sendContributorPullRequests( .where('contributor_id', '=', contributor.id) .where('github_repo_id', '=', repo.id) .where('merged_at', 'is not', null) - .where('created_at', '>', cutOffDate) + .where('merged_at', '>', cutOffDate) .select(['homie.pull_request.html_url', 'homie.pull_request.title']) .orderBy('merged_at') .execute()