From 3ded06390c024ec471f694f2e2390df650f9565a Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sat, 10 Feb 2018 13:12:12 -0600 Subject: [PATCH] ignore cancelled pireps in dupe check #179 --- app/Services/PIREPService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Services/PIREPService.php b/app/Services/PIREPService.php index fa723c27..7416eb81 100644 --- a/app/Services/PIREPService.php +++ b/app/Services/PIREPService.php @@ -84,6 +84,7 @@ class PIREPService extends BaseService try { $found_pireps = Pirep::where($where) + ->where('state', '!=', PirepState::CANCELLED) ->where('created_at', '>=', $time_limit) ->get();