From e6de809ff29a9df54af5fef3f425072e24de49ec Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 17 Jan 2024 23:17:00 +0100 Subject: [PATCH] fix: improve app push for cli --- cli/apps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/apps.ts b/cli/apps.ts index 63c2e27a8a..dad3fae466 100644 --- a/cli/apps.ts +++ b/cli/apps.ts @@ -2,7 +2,6 @@ import { requireLogin, resolveWorkspace, validatePath } from "./context.ts"; import { AppService, - AppWithLastVersion, colors, Command, ListableApp, @@ -25,12 +24,12 @@ export interface AppFile { export async function pushApp( workspace: string, filePath: string, + app: AppFile | undefined, newApp: AppFile, message?: string ): Promise { const remotePath = removeType(filePath, "app"); // deleting old app if it exists in raw mode - let app = undefined; try { app = await AppService.getAppByPath({ workspace, @@ -105,6 +104,7 @@ async function push(opts: GlobalOptions, filePath: string) { await pushApp( workspace.workspaceId, filePath, + undefined, parseFromFile(filePath) ); console.log(colors.bold.underline.green("App pushed"));