Fixes to emailing cancel requests. Changes to email jobs with no site_id

This commit is contained in:
Deon George
2022-09-29 12:16:08 +10:00
parent 1667b8c1df
commit 2a19f14adb
13 changed files with 68 additions and 12 deletions

View File

@@ -17,6 +17,7 @@ class SiteScope implements Scope
*/
public function apply(Builder $builder, Model $model)
{
// @todo Need to only do this, if the original query doesnt already have a where condition with a site_id
$builder->where($model->getTable().'.site_id',config('site')->site_id);
}
}