push notifications fix

This commit is contained in:
AF 2020-08-14 02:12:37 +03:00
parent 8ec2e91f55
commit f11449eb6f

View File

@ -338,9 +338,11 @@ class DBStorage(PushStorage):
def pushsubscription(subscription: dict):
assert requests.post('http://localhost:5025/api/push', json={
"subscription": subscription,
"notification": {
"notification": {
"title": "New Message (V25PUSH)"
}
}
}).status_code == 200, "push failed"
def pushpush(self, subject: Subject):