fix(merge_component): 🐛 fix data lost after applied from merge
Fixing data lost after pressed on apply button in merge modal, WIP selection merge
This commit is contained in:
parent
cd0f67bb44
commit
58746ebdfb
5 changed files with 182 additions and 50 deletions
|
|
@ -470,7 +470,7 @@ func (rr *RecipeRouter) updateRecipe(w http.ResponseWriter, r *http.Request) {
|
|||
// target saved filename
|
||||
saved_filename := path.Join("./cofffeemachineConfig", countryID, filename)
|
||||
|
||||
// store @ temporary file
|
||||
// store @ temporary filex
|
||||
temp_file_name := helpers.GetTempFile(saved_filename, editor, 0)
|
||||
|
||||
// push this change, editor, commit_msg into db
|
||||
|
|
@ -492,6 +492,13 @@ func (rr *RecipeRouter) updateRecipe(w http.ResponseWriter, r *http.Request) {
|
|||
// ------------------------ SKIP THIS ------------------------
|
||||
// save only changes.
|
||||
|
||||
// get new change
|
||||
// newChangeRecipe, err := rr.data.GetRecipe01ByProductCode(filename, countryID, changes.ProductCode)
|
||||
// if err != nil {
|
||||
// // error missing
|
||||
// rr.taoLogger.Log.Debug("RecipeRouter.UpdateRecipe.MissingNewChange", zap.Any("error", err))
|
||||
// }
|
||||
|
||||
// get new tempfile name if redis is connected;
|
||||
|
||||
productCodeNoSpl := strings.ReplaceAll(changes.ProductCode, "-", "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue