fix: round LinkedIn token expiration day difference to ensure accurate integer comparison
This commit is contained in:
@@ -148,7 +148,7 @@ class LinkedInService
|
||||
}
|
||||
|
||||
$date = \Carbon\Carbon::parse($expiresAt);
|
||||
$diff = now()->diffInDays($date, false);
|
||||
$diff = (int) round(now()->diffInDays($date, false));
|
||||
|
||||
if ($diff <= 0) {
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user