exit with non zero code when no invoicess were processed GitOrigin-RevId: df449964fc830f689d972d9ad3ed6b352c1b7c5c
@@ -93,5 +93,10 @@ attemptInvoicesCollection(error => {
},
{ maxArrayLength: null }
)
- process.exit()
+
+ if (INVOICES_COLLECTED_SUCCESS === 0) {
+ process.exit(1)
+ } else {
+ process.exit()
+ }
})