minor change in getLeads()
This commit is contained in:
1 parent
7a7dcfe3ad
commit
83ccf3ed04
2 files changed
+3
-3
No files matched your search
@@ -28,7 +28,7 @@ async function getLeads(lastRunDate, currentDate, unsent, test) {
|
||||
const result = await response.json();
|
||||
|
||||
if (!Array.isArray(result?.data)) {
|
||||
console.log('API response empty or invalid: ', result?.message || 'No data rray found');
|
||||
console.log('API response empty or invalid: ', result?.message || 'No data array found');
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user