From 09467c6c7ba208c4be22ee45bd4c94326e9c427b Mon Sep 17 00:00:00 2001 From: James Hu <51237606+jameshu111@users.noreply.github.com> Date: Wed, 7 Jun 2023 12:47:51 -0400 Subject: update comments --- src/client/documents/Documents.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/client/documents') 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 }, -- cgit v1.2.3-70-g09d2