This commit is contained in:
2026-04-23 23:13:30 +03:00
parent 6f7fce1c1a
commit 3652b361e7
2 changed files with 32 additions and 7 deletions

View File

@@ -480,6 +480,11 @@
const isLocked = status === 0;
const action = isLocked ? 'unlock' : 'upgrade';
const requestedAction = cmd.payload?.action_type;
if (requestedAction && requestedAction !== action) {
skipped++; continue;
}
log(`Farm ${action}: farm_id=${farm.attributes.id} level=${level} town=${town_id}`);
try {
uw.gpAjax.ajaxPost('frontend_bridge', 'execute', {