ignore cancelled pireps in dupe check #179

This commit is contained in:
Nabeel Shahzad 2018-02-10 13:12:12 -06:00
parent 936bceba5d
commit 3ded06390c

View File

@ -84,6 +84,7 @@ class PIREPService extends BaseService
try { try {
$found_pireps = Pirep::where($where) $found_pireps = Pirep::where($where)
->where('state', '!=', PirepState::CANCELLED)
->where('created_at', '>=', $time_limit) ->where('created_at', '>=', $time_limit)
->get(); ->get();