Skip to content
This repository was archived by the owner on Aug 27, 2023. It is now read-only.

Commit a9286dc

Browse files
authored
Re-implementing #47 for MongoDB support
1 parent c86de79 commit a9286dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Youtube.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public function getLatestAccessTokenFromDB()
325325
->latest('created_at')
326326
->first();
327327

328-
return $latest ? $latest->access_token : null;
328+
return $latest ? (is_array($latest) ? $latest['access_token'] : $latest->access_token ) : null;
329329
}
330330

331331
/**

0 commit comments

Comments
 (0)