feat: add tests for email template resolvers

This commit is contained in:
Lakhan Samani
2022-07-17 13:37:34 +05:30
parent cd46da60a0
commit a48b809a89
15 changed files with 263 additions and 23 deletions

View File

@@ -81,6 +81,7 @@ func (p *provider) UpdateEmailTemplate(ctx context.Context, emailTemplate models
updateFields = strings.TrimSuffix(updateFields, ",")
query := fmt.Sprintf("UPDATE %s SET %s WHERE id = '%s'", KeySpace+"."+models.Collections.EmailTemplate, updateFields, emailTemplate.ID)
fmt.Println("=> query:", query)
err = p.db.Query(query).Exec()
if err != nil {
return nil, err