Actually make multiplart also optional
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user