Some approval statuses coming back as null., fixed

This commit is contained in:
Dan Funk 2020-06-05 14:55:49 -04:00
parent f0db5b70fc
commit 1f32a99efe
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ class ApprovalService(object):
return ra.status # If any prior approval id declined or cancelled so is this approval.
elif ra.status == ApprovalStatus.PENDING.value:
return ApprovalStatus.AWAITING.value # if any prior approval is pending, then this is waiting.
return approval.status
else:
return approval.status