fix: use correct path format for deployment

This commit is contained in:
James Murdza 2024-10-25 06:59:27 -06:00
parent f83dcfcf8f
commit 21026a3c53

View File

@ -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 }
}