chore: add asynchronous webhook dispatch

This commit is contained in:
Steven
2025-05-27 20:01:04 +08:00
parent 7c05a9b997
commit f12d7ae8bc
2 changed files with 18 additions and 3 deletions

View File

@@ -689,9 +689,9 @@ func (s *APIV1Service) dispatchMemoRelatedWebhook(ctx context.Context, memo *v1p
}
payload.ActivityType = activityType
payload.Url = hook.URL
if err := webhook.Post(payload); err != nil {
return errors.Wrap(err, "failed to post webhook")
}
// Use asynchronous webhook dispatch
webhook.PostAsync(payload)
}
return nil
}