From 7f959fc271ea66b78fe308fb2e449e3019cdb254 Mon Sep 17 00:00:00 2001 From: Sam Wilkins Date: Sat, 28 Sep 2019 03:55:55 -0400 Subject: merge cleanup --- src/client/DocServer.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client') diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts index 4dea4f11c..e48654372 100644 --- a/src/client/DocServer.ts +++ b/src/client/DocServer.ts @@ -144,7 +144,7 @@ export namespace DocServer { * the server if the document has not been cached. * @param id the id of the requested document */ - const _GetRefFieldImpl = (id: string, mongoCollection?: string): Promise> => { + const _GetRefFieldImpl = (id: string): Promise> => { // an initial pass through the cache to determine whether the document needs to be fetched, // is already in the process of being fetched or already exists in the // cache @@ -155,7 +155,7 @@ export namespace DocServer { // synchronously, we emit a single callback to the server requesting the serialized (i.e. represented by a string) // field for the given ids. This returns a promise, which, when resolved, indicates the the JSON serialized version of // the field has been returned from the server - const getSerializedField = Utils.EmitCallback(_socket, MessageStore.GetRefField, { id, mongoCollection }); + const getSerializedField = Utils.EmitCallback(_socket, MessageStore.GetRefField, id); // when the serialized RefField has been received, go head and begin deserializing it into an object. // Here, once deserialized, we also invoke .proto to 'load' the document's prototype, which ensures that all @@ -190,8 +190,8 @@ export namespace DocServer { let _GetRefField: (id: string, mongoCollection?: string) => Promise> = errorFunc; - export function GetRefField(id: string, mongoCollection = "newDocuments"): Promise> { - return _GetRefField(id, mongoCollection); + export function GetRefField(id: string): Promise> { + return _GetRefField(id); } export async function getYoutubeChannels() { -- cgit v1.2.3-70-g09d2