Add event to process webhook payments

This commit is contained in:
2023-05-13 23:51:27 +10:00
parent 12b63a506f
commit c1bb20dec0
6 changed files with 97 additions and 5 deletions

View File

@@ -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);
}
);
}