Skip to content

Commit 09971bc

Browse files
committed
update
1 parent f2947f5 commit 09971bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/heylibby/sources/new-qualified-lead-created/new-qualified-lead-created.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export default {
3838
const lastTs = this._getLastTs();
3939
let maxTs = lastTs;
4040
const leads = await this.heylibby.listQualifiedLeads();
41+
if (!leads?.length) {
42+
return;
43+
}
4144
for (const lead of leads) {
4245
const ts = Date.parse(lead.datetime);
4346
if (ts > lastTs) {

0 commit comments

Comments
 (0)