diff --git a/mitama/models/nodes.py b/mitama/models/nodes.py index 62e25a0..89a024e 100644 --- a/mitama/models/nodes.py +++ b/mitama/models/nodes.py @@ -590,7 +590,7 @@ def push(self, data): try: webpush( subscription_info=json.loads(self.subscription), - data=data, + data=json.dumps(data), vapid_private_key=self.project.vapid.private_key, vapid_claims={ "sub": "mailto:{}".format(self.project.vapid.mailto)