diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2020-05-05 02:48:03 -0700 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-05-05 02:48:03 -0700 |
| commit | aa1eb6ba4217fb48ab10539ca0373b4a1f649192 (patch) | |
| tree | 69cbc232d8e642cc91d431419d36297656240527 /src/server/ApiManagers/GooglePhotosManager.ts | |
| parent | 3805029b253fcf224ad8b1effadfddf743704373 (diff) | |
database, delete and google authentication simplifications and improvements, as well as formatted text box updates data state at field key not just data
Diffstat (limited to 'src/server/ApiManagers/GooglePhotosManager.ts')
| -rw-r--r-- | src/server/ApiManagers/GooglePhotosManager.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/ApiManagers/GooglePhotosManager.ts b/src/server/ApiManagers/GooglePhotosManager.ts index 88219423d..11841a603 100644 --- a/src/server/ApiManagers/GooglePhotosManager.ts +++ b/src/server/ApiManagers/GooglePhotosManager.ts @@ -56,7 +56,7 @@ export default class GooglePhotosManager extends ApiManager { const { media } = req.body; // first we need to ensure that we know the google account to which these photos will be uploaded - const token = await GoogleApiServerUtils.retrieveAccessToken(user.id); + const token = (await GoogleApiServerUtils.retrieveCredentials(user.id))?.credentials?.access_token; if (!token) { return _error(res, authenticationError); } |
