Fixed error
This commit is contained in:
parent
3773412728
commit
6b2130fb1d
1 changed files with 3 additions and 1 deletions
|
|
@ -172,6 +172,8 @@ export default () => {
|
||||||
await postPops(division, application)
|
await postPops(division, application)
|
||||||
const popsResult = await checkPops(application)
|
const popsResult = await checkPops(application)
|
||||||
|
|
||||||
|
console.log('popsResult', popsResult)
|
||||||
|
|
||||||
if (popsResult) {
|
if (popsResult) {
|
||||||
signed = await setNewStatus(division, 'OCCUPANCY ORDER OF PAYMENT APPROVED AND SIGNED', '172', 'OCCOPAPPROVEDSIGNED', 1)
|
signed = await setNewStatus(division, 'OCCUPANCY ORDER OF PAYMENT APPROVED AND SIGNED', '172', 'OCCOPAPPROVEDSIGNED', 1)
|
||||||
updateDocflow(division, application, 'FOR OCCUPANCY RECOMMENDING APPROVAL')
|
updateDocflow(division, application, 'FOR OCCUPANCY RECOMMENDING APPROVAL')
|
||||||
|
|
@ -251,7 +253,7 @@ export default () => {
|
||||||
|
|
||||||
const checkPops = async (application: string) => {
|
const checkPops = async (application: string) => {
|
||||||
const response = await getApi('check-popsrecord', application)
|
const response = await getApi('check-popsrecord', application)
|
||||||
const result = response.result
|
const result = response
|
||||||
|
|
||||||
return parseInt(result) > 0
|
return parseInt(result) > 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue