Kaynağa Gözat

fix: bookList with result

ryanemax 7 ay önce
ebeveyn
işleme
f853e54d9c
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      server/cloud/tbook/func-tbook-export.js

+ 2 - 2
server/cloud/tbook/func-tbook-export.js

@@ -24,10 +24,10 @@ if(!fs.existsSync(TemplateDocxPath)){
         try{
         try{
             let result
             let result
             if(processId){
             if(processId){
-                await exportProcessReportDocs(processId)
+                result = await exportProcessReportDocs(processId)
             }
             }
             if(bookList?.length){
             if(bookList?.length){
-                await exportProcessReportDocs(null,bookList)
+                result = await exportProcessReportDocs(null,bookList)
             }
             }
             if(result?.docsList?.length==0){
             if(result?.docsList?.length==0){
                 throw new Parse.Error(404,"合集内无申报教材")
                 throw new Parse.Error(404,"合集内无申报教材")