diff options
author | bob <bcz@cs.brown.edu> | 2019-02-06 17:47:43 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-02-06 17:47:43 -0500 |
commit | 25d7d1119e52da223ab95df18578afcda5e29670 (patch) | |
tree | fb1637bf75ccbc0f4781d68844cedf01af7df0de /src/documents/Documents.ts | |
parent | 59d5992f2a101eff7743328c3fdefe6a0006ada9 (diff) |
cleaned up server api a bit.
Diffstat (limited to 'src/documents/Documents.ts')
-rw-r--r-- | src/documents/Documents.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/documents/Documents.ts b/src/documents/Documents.ts index 2ad6b64c3..90124d36c 100644 --- a/src/documents/Documents.ts +++ b/src/documents/Documents.ts @@ -123,7 +123,7 @@ export namespace Documents { Server.AddDocument(imageProto); return imageProto; } - return Server.GetDocument(imageProtoId)!; + return Server.GetDocument(imageProtoId, true)!; } export function ImageDocument(url: string, options: DocumentOptions = {}): Document { @@ -131,7 +131,7 @@ export namespace Documents { setupOptions(doc, options); doc.Set(KeyStore.Data, new ImageField(new URL(url))); Server.AddDocument(doc); - return Server.GetDocument(doc.Id)!; + return Server.GetDocument(doc.Id, true)!; } let collectionProto: Document; |