Skip to content

Commit

Permalink
fix: 修复无法置空作业集说明或者作业id列表的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dragove committed May 2, 2024
1 parent 6d4411b commit 13b1803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/plus/maa/backend/service/CopilotSetService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ class CopilotSetService(
if (!req.name.isNullOrBlank()) {
copilotSet.name = req.name
}
if (!req.description.isNullOrBlank()) {
if (req.description != null) {
copilotSet.description = req.description
}
if (req.status != null) {
copilotSet.status = req.status
}
if (!req.copilotIds.isNullOrEmpty()) {
if (req.copilotIds != null) {
copilotSet.copilotIds = req.copilotIds
copilotSet.distinctIdsAndCheck()
}
Expand Down

0 comments on commit 13b1803

Please sign in to comment.