2
0
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:
Matthias
2021-10-19 00:31:25 +02:00
parent 6147b079d1
commit 515e1faad4
2 changed files with 5 additions and 7 deletions

View File

@ -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):