Skip to content

Commit

Permalink
修复创建sheet接口未设置order时会报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Val-istar-Guo committed May 31, 2024
1 parent 179bf1f commit e4accce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sixty-bugs-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opendoc/backend": patch
---

创建 sheet 接口未设置 order 时会报错
3 changes: 3 additions & 0 deletions app/backend/src/modules/sheet/dto/create-sheet.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export class CreateSheetDTO extends TakeType(
['code', 'type', 'title', 'mode'],
['order'],
) {
@IsOptional()
order

/**
* 应用编码
* 将文档创建到哪个应用下
Expand Down

0 comments on commit e4accce

Please sign in to comment.