upstream sync

This commit is contained in:
Senad Uka
2023-10-02 12:59:19 +02:00
parent 8a2dbfe055
commit 7df0c64d15
3 changed files with 7 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ func GetProductTemplate(c *gin.Context) {
return
}
err = json.Unmarshal(productTemplate.Config, &productTemplate.ProductTemplateConfig)
err = json.Unmarshal([]byte(productTemplate.Config), &productTemplate.ProductTemplateConfig)
if err != nil {
log.Printf("GetProductTemplate Error: Could not fetch product template config: %v", err)
c.JSON(http.StatusInternalServerError, gin.H{"error": "Could not fetch product template config"})