Skip to content

Commit 2942bf9

Browse files
committed
Makes some promote iots nullable instead of optional
1 parent 015ef3b commit 2942bf9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/core/services/package-manager.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -476,13 +476,13 @@ export const promotePackage = async function (
476476
sourceDeploymentInfo: DeploymentsInstance,
477477
destDeploymentInfo: DeploymentsInstance,
478478
params: {
479-
appVersion?: string,
480-
label?: string,
481-
description?: string,
482-
promoteUid?: number,
483-
rollout?: number,
484-
isDisabled?: boolean
485-
isMandatory?: boolean
479+
appVersion: string | null
480+
label: string | null
481+
description?: string
482+
promoteUid?: number
483+
rollout?: number
484+
isDisabled: boolean | null
485+
isMandatory: boolean | null
486486
}
487487
) {
488488
const appVersion = _.get(params, 'appVersion', null);

src/routes/apps.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -382,13 +382,13 @@ router.post('/:appName/deployments/:sourceDeploymentName/promote/:destDeployment
382382
}),
383383
body: t.type({
384384
packageInfo: t.type({
385-
appVersion: t.optional(t.string),
386-
label: t.optional(t.string),
385+
appVersion: t.nullable(t.string),
386+
label: t.nullable(t.string),
387387
description: t.optional(t.string),
388388
promoteUid: t.optional(t.number),
389389
rollout: t.optional(t.number),
390-
isDisabled: t.optional(t.boolean),
391-
isMandatory: t.optional(t.boolean)
390+
isDisabled: t.nullable(t.boolean),
391+
isMandatory: t.nullable(t.boolean)
392392
})
393393
})
394394
},

0 commit comments

Comments
 (0)