mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 05:23:47 +08:00
Go: add context (#17314)
### Summary As title. --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -216,7 +216,7 @@ func (s *FileCommitService) CreateCommit(folderID, authorID, message string, cha
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to marshal tree state: %w", err)
|
||||
}
|
||||
if err := tx.Model(&entity.FileCommit{}).Where("id = ?", commitID).Update("tree_state", string(treeJSON)).Error; err != nil {
|
||||
if err = tx.Model(&entity.FileCommit{}).Where("id = ?", commitID).Update("tree_state", string(treeJSON)).Error; err != nil {
|
||||
return fmt.Errorf("failed to update tree state: %w", err)
|
||||
}
|
||||
treeStr = string(treeJSON)
|
||||
|
||||
Reference in New Issue
Block a user