fix(n8n): AList user/update requires username; hooks -> container-local; deploy script

- w1/w3-body: disable calls now send username + assert code===200
  (v3.63 validator rejects {id,disabled} with 400 -> silent no-disable)
- regenerated W1/W3 json, deployed live via REST API, activeVersionId re-aligned
- NocoDB hooks repointed to http://n8n:5678 (old auto.hoelee.com chain loses
  events on VPS stalls; W2 hook path was also 404 since creation)
- deploy_w1_w3.mjs: reusable PUT deploy via n8n API key from SECRETS.md
- PROJECT_STATE: e2e verification results + updated next steps
This commit is contained in:
2026-08-25 05:17:46 +08:00
parent fd62775fcd
commit 773fd3f2d5
7 changed files with 71 additions and 19 deletions
+4 -1
View File
@@ -153,7 +153,10 @@ if (status !== 'active') {
}
const actions = [];
if (alistUserId) {
await alistReq(ctx, 'POST', '/api/admin/user/update', { id: alistUserId, disabled: true }, token);
// AList v3.63 /user/update REQUIRES username (validation: Username required).
// Sending {id,disabled} alone -> 400 -> silent no-disable (found live 2026-08-25).
const disRes = await alistReq(ctx, 'POST', '/api/admin/user/update', { id: alistUserId, username, disabled: true }, token);
if (!disRes || disRes.code !== 200) throw new Error('AList disable failed: ' + JSON.stringify(disRes));
actions.push('disable_user');
}
if (alistRoleId) {