Skip to content

Commit 0b5e1c5

Browse files
author
HugoMartineau
committed
fix compare date time
1 parent 6548121 commit 0b5e1c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Services/ApiWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function getAccessTokensAndRefreshIfNecessary($organization_slug): ?Acces
118118
return null;
119119
}
120120
} else {
121-
if (new DateTime($tokenData->access_token_expires_at) < new DateTime()) {
121+
if ($tokenData->access_token_expires_at < new DateTime()) {
122122
$tokenData = $this->refreshToken($tokenData->refresh_token, $organization_slug);
123123
return $tokenData;
124124
}

0 commit comments

Comments
 (0)