add mixing topping with override

This commit is contained in:
pakintada@gmail.com 2024-01-23 13:46:37 +07:00
parent 35ebde967d
commit 79dddd1fbc
15 changed files with 296 additions and 91 deletions

View file

@ -311,7 +311,7 @@ func (d *Data) GetRecipe01ByProductCode(filename, countryID, productCode string)
d.taoLogger.Log.Error("GetRecipe01ByProductCode: Error when read recipe file, Return default recipe", zap.Error(err))
for _, v := range d.currentRecipe[countryID].Recipe01 {
if v.ProductCode == productCode {
return v, nil
return v, fmt.Errorf("[DEFAULT]-ERR")
}
}
}