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
|
||||
data = self.webhook.get_result(payload, headers, request)
|
||||
data = self.webhook.get_return(payload, headers, request)
|
||||
return HttpResponse(data)
|
||||
|
||||
def _process_payload(self, message_id):
|
||||
|
@ -1372,9 +1372,8 @@ class WebhookEndpoint(models.Model):
|
||||
def process_payload(self, message, payload=None, headers=None):
|
||||
return True
|
||||
|
||||
def get_result(self, payload, headers=None, request=None):
|
||||
data = {'message': self.MESSAGE_OK}
|
||||
return data
|
||||
def get_return(self, payload, headers=None, request=None):
|
||||
return self.MESSAGE_OK
|
||||
|
||||
|
||||
class WebhookMessage(models.Model):
|
||||
|
Loading…
Reference in New Issue
Block a user