feat: add sql database methods for webhook

This commit is contained in:
Lakhan Samani
2022-07-09 11:21:32 +05:30
parent 0ffb3f67f1
commit e8eb62769e
8 changed files with 78 additions and 18 deletions

View File

@@ -17,15 +17,13 @@ type WebhookLog struct {
}
func (w *WebhookLog) AsAPIWebhookLog() *model.WebhookLog {
createdAt := w.CreatedAt
updatedAt := w.UpdatedAt
return &model.WebhookLog{
ID: w.ID,
HTTPStatus: &w.HttpStatus,
Response: &w.Response,
Request: &w.Request,
WebhookID: &w.WebhookID,
CreatedAt: &createdAt,
UpdatedAt: &updatedAt,
CreatedAt: &w.CreatedAt,
UpdatedAt: &w.UpdatedAt,
}
}