mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
fix: unable to upload avatar for search (#16437)
### What problem does this PR solve? As title ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -294,6 +294,7 @@ type UpdateSearchRequest struct {
|
||||
Name string `json:"name" binding:"required"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
SearchConfig map[string]interface{} `json:"search_config" binding:"required"`
|
||||
Avatar *string `json:"avatar,omitempty"`
|
||||
}
|
||||
|
||||
func (s *SearchService) UpdateSearch(userID string, searchID string, req *UpdateSearchRequest) (*entity.Search, error) {
|
||||
@@ -352,6 +353,9 @@ func (s *SearchService) UpdateSearch(userID string, searchID string, req *Update
|
||||
if req.Description != nil {
|
||||
updates["description"] = *req.Description
|
||||
}
|
||||
if req.Avatar != nil {
|
||||
updates["avatar"] = *req.Avatar
|
||||
}
|
||||
|
||||
// Step 6: Execute update
|
||||
// Python: SearchService.update_by_id(search_id, req)
|
||||
|
||||
Reference in New Issue
Block a user