fix(agent): disallow update if prompt is empty (#1802)

This commit is contained in:
Ryo
2025-08-25 20:22:45 +08:00
committed by GitHub
parent 14ce6bc112
commit f19761fa31
4 changed files with 19 additions and 5 deletions

View File

@@ -153,7 +153,7 @@ func (s *singleAgentImpl) UpdateSingleAgentDraft(ctx context.Context, agentInfo
}
}
return s.AgentDraftRepo.Update(ctx, agentInfo)
return s.AgentDraftRepo.Save(ctx, agentInfo)
}
func (s *singleAgentImpl) CreateSingleAgentDraftWithID(ctx context.Context, creatorID, agentID int64, draft *entity.SingleAgent) (int64, error) {