From b85a28fdf612bd3fcdd179ccf514e0e869a24d0d Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 22 Oct 2024 16:19:25 +0200 Subject: [PATCH] Fixes --- packages/server/src/api/controllers/application.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/controllers/application.ts b/packages/server/src/api/controllers/application.ts index 8102254a79..d8d9d75336 100644 --- a/packages/server/src/api/controllers/application.ts +++ b/packages/server/src/api/controllers/application.ts @@ -440,13 +440,13 @@ async function creationEvents(request: BBRequest, app: App) { let creationFns: ((app: App) => Promise)[] = [] const { useTemplate, templateKey, file } = request.body - if (useTemplate) { + if (useTemplate === "true") { // from template if (templateKey && templateKey !== "undefined") { creationFns.push(a => events.app.templateImported(a, templateKey)) } // from file - else if (request.files?.templateFile) { + else if (request.files?.fileToImport) { creationFns.push(a => events.app.fileImported(a)) } // from server file path