From 21026a3c53716ca8cbaf21e6076f5b29d7d7d2f9 Mon Sep 17 00:00:00 2001 From: James Murdza Date: Fri, 25 Oct 2024 06:59:27 -0600 Subject: [PATCH] fix: use correct path format for deployment --- backend/server/src/SandboxManager.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/server/src/SandboxManager.ts b/backend/server/src/SandboxManager.ts index 7503b7d..960d3c3 100644 --- a/backend/server/src/SandboxManager.ts +++ b/backend/server/src/SandboxManager.ts @@ -134,11 +134,7 @@ export class SandboxManager { const handleDeploy: SocketHandler = async (_: any) => { if (!this.gitClient) throw Error("No git client") if (!this.fileManager) throw Error("No file manager") - const fixedFilePaths = this.fileManager?.fileData.map((file) => ({ - ...file, - id: file.id.split("/").slice(2).join("/"), - })) - await this.gitClient.pushFiles(fixedFilePaths, this.sandboxId) + await this.gitClient.pushFiles(this.fileManager?.fileData, this.sandboxId) return { success: true } }