diff --git a/mitama/models/nodes.py b/mitama/models/nodes.py index 55606ed..48d0592 100644 --- a/mitama/models/nodes.py +++ b/mitama/models/nodes.py @@ -592,9 +592,9 @@ def push(self, data): webpush( subscription_info=json.loads(self.subscription), data=json.dumps(data), - vapid_private_key=self._project.vapid.private_key, + vapid_private_key=self._project.vapid['private_key'], vapid_claims={ - "sub": "mailto:{}".format(self._project.vapid.mailto) + "sub": "mailto:{}".format(self._project.vapid['mailto']) } ) except Exception as err: