Bump hook when received

This commit is contained in:
Mark Veidemanis 2022-10-15 23:10:18 +01:00
parent 67efd01c15
commit a433a4f4b7
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ class HookAPI(APIView):
data=request.data, data=request.data,
) )
callback.save() callback.save()
hook.received = hook.received += 1
hook.save()
print("SAVED") print("SAVED")
return HttpResponse("OK") return HttpResponse("OK")