edit and re publist

This commit is contained in:
Admin 2025-08-19 09:18:59 +07:00
parent fa51ddc304
commit b3dd2579ff
2 changed files with 7 additions and 5 deletions

View File

@ -292,7 +292,7 @@ const init = async () => {
handleListenDeletes();
handleListenEdits();
ensureMarketplaceSellingTab();
createAlarm();
// createAlarm();
};
chrome.runtime.onMessage.addListener((message, sender) => {
@ -302,10 +302,10 @@ chrome.runtime.onMessage.addListener((message, sender) => {
}
});
// Khởi tạo alarm (3040 giây, random)
// Khởi tạo alarm (35 phút, random)
function createAlarm() {
const delay = 30 + Math.floor(Math.random() * 11); // 30 → 40 giây
chrome.alarms.create("checkQueue", { delayInMinutes: delay / 60 });
const delay = 3 + Math.floor(Math.random() * 3); // 3, 4, hoặc 5 phút
chrome.alarms.create("checkQueue", { delayInMinutes: delay });
}
// Task reload extension (nằm trong queue)

View File

@ -162,7 +162,9 @@ export default function ProductModal({
await productApi.customAction(
response.data.id,
"publist",
response.data
response.data,
"POST",
{ toast_success: false }
);
}
}