mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Push notifications (#7682)
* Fix Social Push notifications * Fix code formatting issues * Fix commented issues * Fix Syntax errors * update push notify dependency * specify push-notify version * change how apn key is loaded * feat(push-notifications): improve logging * feat(push-notifications): disable v2 push notifications * test(push-notifications): add unit tests and improve integration ones * fix(push-notifications): throw when required params are missing * fix(tests): correct descriptions and remove wrong comment * fix(push-notifications): trim APN key * fix(apn): log feedback only if it has data * fix(apn): load cert and key differently * fix(tests): correctly load apn during tests * download creds from S3 and create AWS lib * convert s3 buffer to a string * fix(apn): remove console.log and do not use cert twice * invert key and cert, disable failing test * invert key and cert
This commit is contained in:
@@ -151,7 +151,6 @@ import blockUser from './ops/blockUser';
|
||||
import clearPMs from './ops/clearPMs';
|
||||
import deletePM from './ops/deletePM';
|
||||
import reroll from './ops/reroll';
|
||||
import addPushDevice from './ops/addPushDevice';
|
||||
import reset from './ops/reset';
|
||||
import markPmsRead from './ops/markPMSRead';
|
||||
|
||||
@@ -191,7 +190,6 @@ api.ops = {
|
||||
clearPMs,
|
||||
deletePM,
|
||||
reroll,
|
||||
addPushDevice,
|
||||
reset,
|
||||
markPmsRead,
|
||||
};
|
||||
@@ -272,7 +270,6 @@ api.wrap = function wrapUser (user, main = true) {
|
||||
addWebhook: _.partial(importedOps.addWebhook, user),
|
||||
updateWebhook: _.partial(importedOps.updateWebhook, user),
|
||||
deleteWebhook: _.partial(importedOps.deleteWebhook, user),
|
||||
addPushDevice: _.partial(importedOps.addPushDevice, user),
|
||||
clearPMs: _.partial(importedOps.clearPMs, user),
|
||||
deletePM: _.partial(importedOps.deletePM, user),
|
||||
blockUser: _.partial(importedOps.blockUser, user),
|
||||
|
||||
Reference in New Issue
Block a user