Add event to process webhook payments
This commit is contained in:
@@ -21,7 +21,8 @@ class SiteScope implements Scope
|
||||
! collect($builder->getQuery()->wheres)->pluck('column')->contains(function($item) { return preg_match('/^(.*[^.]\.)?site_id/',$item); }),
|
||||
function($q) use ($model)
|
||||
{
|
||||
return $q->where($model->getTable().'.site_id',config('site')->site_id);
|
||||
// @todo Remove this override "?? 1" it was put in place to retry failed AccountingPaymentSync
|
||||
return $q->where($model->getTable().'.site_id',config('site')->site_id ?? 1);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user