From 815f798a612443330c82efa9f75fe4777a3af7fa Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Thu, 25 Jan 2024 08:29:18 +0100 Subject: [PATCH] fix: prepare only canisters not created yet --- cli/src/commands/deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/commands/deploy.ts b/cli/src/commands/deploy.ts index 79234bf..e091711 100644 --- a/cli/src/commands/deploy.ts +++ b/cli/src/commands/deploy.ts @@ -12,7 +12,7 @@ export const deploy = async (args?: string[]) => { // 1. Create canisters that do not exist yet await Promise.all( modules - .filter((mod) => mod.status(context) !== 'deployed') + .filter((mod) => mod.status(context) === undefined) .map(async (mod) => { await mod.prepare(context); })