diff --git a/backend/handlers/main.go b/backend/handlers/main.go index 2f83c0c..f126e2c 100644 --- a/backend/handlers/main.go +++ b/backend/handlers/main.go @@ -545,6 +545,8 @@ func HandleTemplateTest(db *gorm.DB) http.HandlerFunc { Direction: "Sortant", Status: "Envoyé", }) + ConsumeCredits(db, &user, "template", description, 1) + w.WriteHeader(resp.StatusCode) json.NewEncoder(w).Encode(respBody)