coffeeinabit 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/linkedin_automation.js +3 -20
- package/package.json +1 -1
- package/reference.html +7394 -0
- package/tools/get_profile.js +6 -8
package/linkedin_automation.js
CHANGED
|
@@ -565,26 +565,9 @@ export class LinkedInAutomation {
|
|
|
565
565
|
const actions = responseData.actions || [];
|
|
566
566
|
console.log('[LinkedInAutomation] Received actions from backend:', actions.length, 'actions');
|
|
567
567
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
const
|
|
571
|
-
if (!executionTime) {
|
|
572
|
-
return true;
|
|
573
|
-
}
|
|
574
|
-
const parsedExecution = new Date(executionTime);
|
|
575
|
-
if (Number.isNaN(parsedExecution.getTime())) {
|
|
576
|
-
return true;
|
|
577
|
-
}
|
|
578
|
-
if (parsedExecution.getTime() > now) {
|
|
579
|
-
console.log(`[LinkedInAutomation] Action ${action.action_id} scheduled for future at ${executionTime}, skipping for now`);
|
|
580
|
-
return false;
|
|
581
|
-
}
|
|
582
|
-
return true;
|
|
583
|
-
});
|
|
584
|
-
|
|
585
|
-
if (readyActions.length > 0) {
|
|
586
|
-
console.log('[LinkedInAutomation] Processing actions:', readyActions.map(a => `${a.action} (${a.action_id})`).join(', '));
|
|
587
|
-
for (const action of readyActions) {
|
|
568
|
+
if (actions.length > 0) {
|
|
569
|
+
console.log('[LinkedInAutomation] Processing actions:', actions.map(a => `${a.action} (${a.action_id})`).join(', '));
|
|
570
|
+
for (const action of actions) {
|
|
588
571
|
await this.executeAction(action);
|
|
589
572
|
}
|
|
590
573
|
} else if (actions.length > 0) {
|