diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2019-09-24 19:09:33 -0400 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-09-24 19:09:33 -0400 |
| commit | 9b27f1ace4655f71a67ad68e1f6f6bba82f41e46 (patch) | |
| tree | b17f932fda82004eeb7f5dadebd3b777a2af4b54 /src/client/apis/google_docs | |
| parent | f529d7d22162689c08830418da67a89778111e16 (diff) | |
now store cache in mongodb collection, fixed extension as
Diffstat (limited to 'src/client/apis/google_docs')
| -rw-r--r-- | src/client/apis/google_docs/GooglePhotosClientUtils.ts | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/client/apis/google_docs/GooglePhotosClientUtils.ts b/src/client/apis/google_docs/GooglePhotosClientUtils.ts index 671d05421..0e09ad85b 100644 --- a/src/client/apis/google_docs/GooglePhotosClientUtils.ts +++ b/src/client/apis/google_docs/GooglePhotosClientUtils.ts @@ -12,17 +12,11 @@ import { FormattedTextBox } from "../../views/nodes/FormattedTextBox"; import { Docs, DocumentOptions } from "../../documents/Documents"; import { NewMediaItemResult, MediaItem } from "../../../server/apis/google/SharedTypes"; import { AssertionError } from "assert"; -import { List } from "../../../new_fields/List"; -import { listSpec } from "../../../new_fields/Schema"; import { DocumentView } from "../../views/nodes/DocumentView"; export namespace GooglePhotos { - const endpoint = async () => { - const getToken = Utils.prepend(RouteStore.googlePhotosAccessToken); - const token = await (await fetch(getToken)).text(); - return new Photos(token); - }; + const endpoint = async () => new Photos(await PostToServer(RouteStore.googlePhotosAccessToken)); export enum MediaType { ALL_MEDIA = 'ALL_MEDIA', |
