Skip to content

Commit 19f7060

Browse files
committed
fix: schema apps in "review" state cannot be updated
1 parent 6fb7678 commit 19f7060

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/late-feet-retire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smartthings/cli": patch
3+
---
4+
5+
Schema apps that are in review cannot be updated.

packages/cli/src/commands/schema/update.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export default class SchemaUpdateCommand extends APIOrganizationCommand<typeof S
5555

5656
const { schemaApp: original, organizationWasUpdated } =
5757
await getSchemaAppEnsuringOrganization(this, id, this.flags)
58-
if (original.certificationStatus === 'wwst' || original.certificationStatus === 'cst') {
58+
if (original.certificationStatus === 'wwst' ||
59+
original.certificationStatus === 'cst' ||
60+
original.certificationStatus === 'review') {
5961
const cancelMsgBase =
6062
'Schema apps that have already been certified cannot be updated via the CLI'
6163
const cancelMsg = organizationWasUpdated

0 commit comments

Comments
 (0)