feat(merge_component): ✨ sync new recipe version
add re-read and sync new file after saving, the new file should be appeared on the file list
This commit is contained in:
parent
09c21301d6
commit
860dc05cde
2 changed files with 12 additions and 0 deletions
|
|
@ -916,6 +916,9 @@ func (rr *RecipeRouter) upgradeVersion(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
// refresh recipe files so the running server can see the new file without restart itself
|
||||
rr.data.AllRecipeFiles = helpers.ScanRecipeFiles(rr.data.Countries)
|
||||
|
||||
w.Header().Add("Content-Type", "application/json")
|
||||
json.NewEncoder(w).Encode(map[string]interface{}{
|
||||
"result": result,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue