mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-03 20:20:58 +00:00
return json rsponse on webhooks
This commit is contained in:
@ -1373,10 +1373,8 @@ class WebhookEndpoint(models.Model):
|
||||
return True
|
||||
|
||||
def get_result(self, payload, headers=None, request=None):
|
||||
context = {}
|
||||
context['data'] = {'message': self.MESSAGE_OK}
|
||||
context['status'] = 200
|
||||
return context
|
||||
data = {'message': self.MESSAGE_OK}
|
||||
return data
|
||||
|
||||
|
||||
class WebhookMessage(models.Model):
|
||||
|
Reference in New Issue
Block a user