@12stonechurch/omnihive-worker-documents
Advanced tools
Comparing version 2.0.91 to 2.0.92
@@ -57,3 +57,7 @@ "use strict"; | ||
const newStatusId = yield AwaitHelper_1.AwaitHelper.execute(this.getStatusId(syncingDoc.status)); | ||
yield AwaitHelper_1.AwaitHelper.execute(this.updateDocStatus(doc.id, newStatusId, syncingDoc.updateTime, syncingDoc.completedDateTime)); | ||
let completedDate = syncingDoc.completedDate; | ||
if (!completedDate && syncingDoc.status.toLowerCase() === "completed") { | ||
completedDate = syncingDoc.updateTime; | ||
} | ||
yield AwaitHelper_1.AwaitHelper.execute(this.updateDocStatus(doc.id, newStatusId, syncingDoc.updateTime, completedDate)); | ||
} | ||
@@ -122,3 +126,3 @@ } | ||
yield this.buildRoleData(availableForms); | ||
return availableForms; | ||
return availableForms.filter((form) => (!form.status && form.roles.length === 1) || form.status); | ||
}); | ||
@@ -141,2 +145,3 @@ this.buildRoleData = (forms) => __awaiter(this, void 0, void 0, function* () { | ||
queryBuilder.whereIn("dfs.Form_ID", formIds); | ||
queryBuilder.andWhere("dfs.Archived", 0); | ||
queryBuilder.select("dfs.DocuSign_Form_Signer_ID as id", "dfs.Signer_Role as role", "dfs.Form_ID as formId"); | ||
@@ -149,2 +154,5 @@ const signerRoles = (yield AwaitHelper_1.AwaitHelper.execute(this.databaseWorker.executeQuery(queryBuilder.toString())))[0]; | ||
} | ||
else { | ||
form.roles = []; | ||
} | ||
}); | ||
@@ -151,0 +159,0 @@ }); |
{ | ||
"name": "@12stonechurch/omnihive-worker-documents", | ||
"version": "2.0.91", | ||
"version": "2.0.92", | ||
"description": "OmniHive Custom Function package", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81489
857