Commit d5890d6d authored by Mark Harding's avatar Mark Harding

(fix): call create after each set

parent 8450551b
1 merge request!333WIP: Resolve "Issue referral cookie on channel and asset pages if not already set"
Pipeline #83994530 passed with stages
in 11 minutes and 49 seconds
......@@ -146,9 +146,6 @@ class Factory
*/
public static function response($data = [])
{
Di::_()->get('Referrals\Cookie')
->create();
$data = array_merge([
'status' => 'success', //should success be assumed?
], $data);
......
......@@ -48,7 +48,8 @@ class channel implements Interfaces\Api
}
Di::_()->get('Referrals\Cookie')
->setEntity($user);
->setEntity($user)
->create();
$user->fullExport = true; //get counts
$user->exportCounts = true;
......
......@@ -114,7 +114,8 @@ class views implements Interfaces\Api
}
Di::_()->get('Referrals\Cookie')
->setEntity($activity);
->setEntity($activity)
->create();
break;
}
......
......@@ -110,7 +110,8 @@ class Router
->withRouterRequest($request);
Di::_()->get('Referrals\Cookie')
->withRouterRequest($request);
->withRouterRequest($request)
->create();
$loop = count($segments);
while ($loop >= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment