feat: add email template schema

This commit is contained in:
Lakhan Samani
2022-07-15 10:12:24 +05:30
parent fed092bb65
commit 14c74f6566
13 changed files with 756 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ type Webhook struct {
UpdatedAt int64 `json:"updated_at" bson:"updated_at" cql:"updated_at"`
}
// AsAPIWebhook to return webhook as graphql response object
func (w *Webhook) AsAPIWebhook() *model.Webhook {
headersMap := make(map[string]interface{})
json.Unmarshal([]byte(w.Headers), &headersMap)