Skip to content

Commit

Permalink
Fix validation at PATCH /workfows/:id (#2819)
Browse files Browse the repository at this point in the history
* 🐛 Validate entity only if workflow

* 👕 Fix build
  • Loading branch information
ivov authored Feb 17, 2022
1 parent 4c544c0 commit 8c1ff6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ class App {
}
}

if (Object.keys(updateData).length > 1 || updateData.active === undefined) {
if (updateData.name) {
updateData.updatedAt = this.getCurrentDate(); // required due to atomic update
await validateEntity(updateData);
}
Expand Down

0 comments on commit 8c1ff6d

Please sign in to comment.