mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
fix(CacheInterface): logic bug in getTime (#3491)
* fix(CacheInterface): logic bug in getTime * test
This commit is contained in:
parent
18e1597361
commit
a9fd3b9e61
11 changed files with 24 additions and 22 deletions
|
@ -203,7 +203,7 @@ class SpotifyBridge extends BridgeAbstract
|
|||
$time = (new DateTime())->getTimestamp() - $cache->getTime();
|
||||
}
|
||||
|
||||
if ($cache->getTime() == false || $time >= 3600) {
|
||||
if (!$cache->getTime() || $time >= 3600) {
|
||||
$this->fetchToken();
|
||||
$cache->saveData($this->token);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue