diff options
| author | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2019-12-02 12:21:09 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-02 12:21:09 -0500 |
| commit | 0595f93dde717b7b6990e9a81c5b43a73a3808d5 (patch) | |
| tree | af03ac257a5584f9913f120c44d4d39bb13916f2 /src/new_fields | |
| parent | 68f49ef5daf3bf5c47d1d21c8f1cd2097947d071 (diff) | |
| parent | ae76fd39a6530ac055948bb7b98537d38b592ef6 (diff) | |
Merge pull request #316 from browngraphicslab/server_refactor
Server refactor
Diffstat (limited to 'src/new_fields')
| -rw-r--r-- | src/new_fields/RichTextUtils.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/new_fields/RichTextUtils.ts b/src/new_fields/RichTextUtils.ts index c2cca859c..dc5574782 100644 --- a/src/new_fields/RichTextUtils.ts +++ b/src/new_fields/RichTextUtils.ts @@ -8,7 +8,6 @@ import { Opt, Doc } from "./Doc"; import Color = require('color'); import { sinkListItem } from "prosemirror-schema-list"; import { Utils } from "../Utils"; -import { RouteStore } from "../server/RouteStore"; import { Docs } from "../client/documents/Documents"; import { schema } from "../client/util/RichTextSchema"; import { GooglePhotos } from "../client/apis/google_docs/GooglePhotosClientUtils"; @@ -17,7 +16,7 @@ import { Cast, StrCast } from "./Types"; import { Id } from "./FieldSymbols"; import { DocumentView } from "../client/views/nodes/DocumentView"; import { AssertionError } from "assert"; -import { Identified } from "../client/Network"; +import { Networking } from "../client/Network"; export namespace RichTextUtils { @@ -129,7 +128,7 @@ export namespace RichTextUtils { return { baseUrl, filename }; }); - const uploads = await Identified.PostToServer(RouteStore.googlePhotosMediaDownload, { mediaItems }); + const uploads = await Networking.PostToServer("/googlePhotosMediaDownload", { mediaItems }); if (uploads.length !== mediaItems.length) { throw new AssertionError({ expected: mediaItems.length, actual: uploads.length, message: "Error with internally uploading inlineObjects!" }); |
