Commit 3a62ba5b authored by John Long's avatar John Long

User: Lower subscription check interval to 2 hours

Ticket: N/A
parent 1b265aae
Pipeline #64044799 passed with stages
in 2 minutes and 3 seconds
......@@ -28,7 +28,7 @@ class User extends Model
'expiration'
];
const PREMIUM_REFRESH_TIME = '6 hours';
const PREMIUM_REFRESH_INTERVAL = '2 hours';
public function hasPremium(): bool
{
......@@ -41,7 +41,7 @@ class User extends Model
}
// Check against Stitcher's API if it's been more than threshold
$threshold = new \DateTime('-' . self::PREMIUM_REFRESH_TIME);
$threshold = new \DateTime('-' . self::PREMIUM_REFRESH_INTERVAL);
if ($this->updated_at < $threshold) {
return $this->checkPremiumStatus();
}
......
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