channel-worker 2.5.109 → 2.5.110
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/lib/api-client.js +8 -1
- package/package.json +1 -1
package/lib/api-client.js
CHANGED
|
@@ -68,7 +68,14 @@ class ApiClient {
|
|
|
68
68
|
async getNextCommand(workerId) {
|
|
69
69
|
// Daemon-handled types. `_pw` variants route to the Playwright pipeline
|
|
70
70
|
// (lib/playwright-runner → scripts/<base>.js) instead of the extension.
|
|
71
|
-
|
|
71
|
+
//
|
|
72
|
+
// ⚠️ ĐÂY LÀ CỔNG THỨ HAI, DỄ QUÊN: API lọc lệnh trả về theo đúng danh sách
|
|
73
|
+
// này (WorkerController.getCommands → filter.type.$in). Thêm loại lệnh mới
|
|
74
|
+
// mà quên khai ở đây thì lệnh nằm PENDING vĩnh viễn, không một dòng lỗi
|
|
75
|
+
// nào — xảy ra 14/09 với verify_facebook_reels_pw (cổng thứ nhất là enum
|
|
76
|
+
// của app/models/WorkerCommand.js, cũng đã quên một lần cùng ngày).
|
|
77
|
+
// api/tests/publish-verify-wiring.test.js canh cả hai cổng.
|
|
78
|
+
const workerTypes = 'launch_profile,close_profile,launch_veo3_profile,set_profile_proxy,save_file,set_thumbnail,set_tags,set_file_input,click_and_upload,type_text,verify_logins,update_extension,sync_youtube_stats,restart_worker,upload_youtube_pw,upload_tiktok_pw,upload_facebook_pw,upload_facebook_photo_pw,warmup_youtube_pw,warmup_facebook_pw,warmup_tiktok_pw,nurture_facebook_pw,fetch_facebook_reel_stats_pw,verify_facebook_reels_pw,comment_facebook_pw,scrape_affiliate_products,ingest_shopee_product,get_affiliate_link';
|
|
72
79
|
return this.request('GET', `/workers/commands?worker_id=${workerId}&types=${encodeURIComponent(workerTypes)}`);
|
|
73
80
|
}
|
|
74
81
|
|