Fix patches crossing between concurrent uploads; pin backend deps

patches was an implicit global set before an await, so concurrent uploads
could save each other's patch lists.

Replace the stale 2024 lockfile with the one from the running production
image (436 packages, verified identical) and install with npm ci, so
uncached rebuilds stop pulling newer versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Luke Berndt
2026-11-09 22:30:41 -05:00
parent 595ffe7eda
commit 138fcba712
3 changed files with 1831 additions and 1913 deletions

View File

@@ -118,7 +118,7 @@ exports.upload = async function (req, res, next) {
return;
}
patches = [];
const patches = [];
let req_patches;
req_patches = req.body.patch_list;