Fix new site creating new site_uri

This commit is contained in:
Deon George 2022-10-29 10:16:10 +11:00
parent 94b50bea3e
commit 19a1a2b6c7

View File

@ -34,7 +34,9 @@ public function main()
$s->active = FALSE;
$s->save();
$u = SiteUri::firstOrNew(['uri'=>request()->getRequestUri()]);
$u = new SiteUri;
$u->uri = request()->getRequestUri();
$u->active = FALSE;
$u->hits = 1;
$s->uris()->save($u);