push notifications fix
This commit is contained in:
parent
8ec2e91f55
commit
f11449eb6f
@ -338,9 +338,11 @@ class DBStorage(PushStorage):
|
|||||||
def pushsubscription(subscription: dict):
|
def pushsubscription(subscription: dict):
|
||||||
assert requests.post('http://localhost:5025/api/push', json={
|
assert requests.post('http://localhost:5025/api/push', json={
|
||||||
"subscription": subscription,
|
"subscription": subscription,
|
||||||
|
"notification": {
|
||||||
"notification": {
|
"notification": {
|
||||||
"title": "New Message (V25PUSH)"
|
"title": "New Message (V25PUSH)"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}).status_code == 200, "push failed"
|
}).status_code == 200, "push failed"
|
||||||
|
|
||||||
def pushpush(self, subject: Subject):
|
def pushpush(self, subject: Subject):
|
||||||
|
Loading…
Reference in New Issue
Block a user