feat: add arangodb database methods for webhook

This commit is contained in:
Lakhan Samani
2022-07-09 11:44:14 +05:30
parent e8eb62769e
commit 6d586b16e4
7 changed files with 113 additions and 11 deletions

View File

@@ -39,7 +39,7 @@ func (p *provider) ListWebhookLogs(pagination model.Pagination, webhookID string
if webhookID != "" {
query = fmt.Sprintf("FOR d in %s FILTER d.webhook_id == @webhookID SORT d.created_at DESC LIMIT %d, %d RETURN d", models.Collections.WebhookLog, pagination.Offset, pagination.Limit)
bindVariables = map[string]interface{}{
webhookID: webhookID,
"webhook_id": webhookID,
}
}
ctx := driver.WithQueryFullCount(context.Background())