refactor fnc name

This commit is contained in:
Matthias 2021-10-20 22:09:50 +02:00
parent c6a5a44355
commit 593c7a41de
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 3 additions and 4 deletions

View File

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

View File

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