aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorJames Hu <51237606+jameshu111@users.noreply.github.com>2023-06-07 12:47:51 -0400
committerJames Hu <51237606+jameshu111@users.noreply.github.com>2023-06-07 12:47:51 -0400
commit09467c6c7ba208c4be22ee45bd4c94326e9c427b (patch)
tree677ff457062593c74c5f4c9f3c3c0e77040eb0b2 /src/client/documents/Documents.ts
parentb2c0855d6d701bd80666e0693bd193dc69efb4a0 (diff)
update comments
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 06b48fe96..c1abd6e71 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -1852,9 +1852,7 @@ export namespace DocUtils {
export async function uploadFilesToDocs(files: File[], options: DocumentOptions) {
const generatedDocuments: Doc[] = [];
- // UploadFilesToServer takes an array of FileGuidPairs,
- // but these files do not have overwriteDocs, so
- // we do not set guid, allowing the client to generate one.
+ // These files do not have overwriteDocs, so we do not set the guid and let the client generate one.
const fileNoGuidPairs: Networking.FileGuidPair[] = files.map(file => ({file}));
const upfiles = await Networking.UploadFilesToServer(fileNoGuidPairs);
@@ -1869,8 +1867,7 @@ export namespace DocUtils {
export function uploadFileToDoc(file: File, options: DocumentOptions, overwriteDoc: Doc) {
const generatedDocuments: Doc[] = [];
- // Since this file has an overwriteDoc, we can set the client tracking guid
- // to the overwriteDoc's guid.
+ // Since this file has an overwriteDoc, we can set the client tracking guid to the overwriteDoc's guid.
Networking.UploadFilesToServer([{file, guid: overwriteDoc[Id]}]).then(upfiles => {
const {
source: { name, type },