ldldldl
This commit is contained in:
parent
a3b3ff7de9
commit
504969e9b6
@ -545,7 +545,9 @@ func HandleTemplateTest(db *gorm.DB) http.HandlerFunc {
|
||||
Direction: "Sortant",
|
||||
Status: "Envoyé",
|
||||
})
|
||||
ConsumeCredits(db, &user, "template", description, 1)
|
||||
if(resp.StatusCode == 200){
|
||||
ConsumeCredits(db, &user, "template", description, 1)
|
||||
}
|
||||
|
||||
|
||||
w.WriteHeader(resp.StatusCode)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user