mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
refactor fnc name
This commit is contained in:
parent
c6a5a44355
commit
593c7a41de
@ -63,7 +63,7 @@ class WebhookView(CsrfExemptMixin, APIView):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# return results
|
# return results
|
||||||
data = self.webhook.get_result(payload, headers, request)
|
data = self.webhook.get_return(payload, headers, request)
|
||||||
return HttpResponse(data)
|
return HttpResponse(data)
|
||||||
|
|
||||||
def _process_payload(self, message_id):
|
def _process_payload(self, message_id):
|
||||||
|
@ -1372,9 +1372,8 @@ class WebhookEndpoint(models.Model):
|
|||||||
def process_payload(self, message, payload=None, headers=None):
|
def process_payload(self, message, payload=None, headers=None):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def get_result(self, payload, headers=None, request=None):
|
def get_return(self, payload, headers=None, request=None):
|
||||||
data = {'message': self.MESSAGE_OK}
|
return self.MESSAGE_OK
|
||||||
return data
|
|
||||||
|
|
||||||
|
|
||||||
class WebhookMessage(models.Model):
|
class WebhookMessage(models.Model):
|
||||||
|
Loading…
Reference in New Issue
Block a user