Base solution for your next web application
Open Closed

Unable to toggle the IsActive property on a webhook when calling the UpdateSubscription API #11769


User avatar
0
JapNolt created

I find it odd that when calling the AddSubscription API in the WebhookSubscriptionAppService, I can pass in the IsActive property and it is honored. But when I try to "toggle" the IsActive property with UpdateSubscription API, the IsActive is not honored. Feels like a bug to me but maybe I'm not understanding something??


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @japnolt

    As far as I can see from source code, both methods use AddOrUpdateSubscriptionAsync method of IWebhookSubscriptionManager and its implementation doesn't have any special check for IsActive. But, I will check this problem, please follow https://github.com/aspnetzero/aspnet-zero-core/issues/5052. We shouldn't use entities as input parameter in app services, I will fix it as well.

  • User Avatar
    0
    JapNolt created

    There is also no way to delete a webhook subscription. Is this by design or an oversight?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I think deletion is not provided on purpose but I will check the source code and exlain it in the issue.