Actually make multiplart also optional

This commit is contained in:
Johannes Zellner
2026-01-28 14:01:22 +01:00
parent a66c3700b3
commit aa84cb0079
4 changed files with 17 additions and 8 deletions
+2 -2
View File
@@ -205,7 +205,7 @@ async function install(req, res, next) {
data.appStoreId = result.appStoreId;
data.manifest = result.manifest;
data.sourceArchiveFilePath = req.files.sourceArchive?.path || null;
data.sourceArchiveFilePath = req.files && req.files.sourceArchive?.path || null;
// if we have a source archive upload, craft a custom docker image URI for later
if (data.sourceArchiveFilePath) {
@@ -713,7 +713,7 @@ async function update(req, res, next) {
data.appStoreId = appStoreId;
data.manifest = manifest;
data.sourceArchiveFilePath = req.files.sourceArchive?.path || null;
data.sourceArchiveFilePath = req.files && req.files.sourceArchive?.path || null;
// if we have a source archive upload, craft a custom docker image URI for later
if (data.sourceArchiveFilePath) {