Update Promise instantiation to deal with TypeScript changes
authorJason Boyer <JBoyer@equinoxOLI.org>
Fri, 11 Mar 2022 17:45:33 +0000 (12:45 -0500)
committerMike Rylander <mrylander@gmail.com>
Thu, 24 Mar 2022 19:10:25 +0000 (15:10 -0400)
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/eg2/src/app/staff/reporter/simple/simple-reporter.service.ts

index 1755cb5..8927aae 100644 (file)
@@ -359,7 +359,7 @@ export class SimpleReporterService {
         }
 
         return Promise.all([
-            new Promise((resolve, reject) => {
+            new Promise<void>((resolve, reject) => {
                 // Verify folders exist, create if not
                 this.getDefaultFolder('rtf')
                 .then(f => {
@@ -375,7 +375,7 @@ export class SimpleReporterService {
                     }
                 });
             }),
-            new Promise((resolve, reject) => {
+            new Promise<void>((resolve, reject) => {
                 this.getDefaultFolder('rrf')
                 .then(f => {
                     if (f) {
@@ -390,7 +390,7 @@ export class SimpleReporterService {
                     }
                 });
             }),
-            new Promise((resolve, reject) => {
+            new Promise<void>((resolve, reject) => {
                 this.getDefaultFolder('rof')
                 .then(f => {
                     if (f) {