diff --git a/backend/windmill-api/src/workspaces.rs b/backend/windmill-api/src/workspaces.rs index 6386171b57..60137b1712 100644 --- a/backend/windmill-api/src/workspaces.rs +++ b/backend/windmill-api/src/workspaces.rs @@ -1111,7 +1111,7 @@ where .as_object() .map(|obj| { let mut obj = obj.clone(); - for key in ["workspace_id", "path", "name"] { + for key in ["workspace_id", "path", "name", "versions"] { if obj.contains_key(key) { obj.remove(key); } diff --git a/cli/apps.ts b/cli/apps.ts index a324fbecf8..358badf2a4 100644 --- a/cli/apps.ts +++ b/cli/apps.ts @@ -1,4 +1,4 @@ -import { Any, model, property, array } from "./decoverto.ts"; +import { Any, model, property } from "./decoverto.ts"; import { AppService, AppWithLastVersion, @@ -16,14 +16,11 @@ export class AppFile implements Resource, PushDiffs { summary: string; @property(Any) policy: Policy; - @property(array(() => Number)) - versions: number[]; - constructor(value: string, summary: string, policy: Policy, versions: number[]) { + constructor(value: string, summary: string, policy: Policy) { this.value = value; this.summary = summary; this.policy = policy; - this.versions = versions; } async pushDiffs( workspace: string, @@ -41,7 +38,6 @@ export class AppFile implements Resource, PushDiffs { summary?: string | undefined; value?: any; policy?: Policy | undefined; - versions?: number[] | undefined; } = {}; for (const diff of diffs) { if (