Skip to content

Commit 37afa98

Browse files
committed
disabled push notifications
1 parent e56f903 commit 37afa98

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/services/notifications/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import ProcedureModel from '../../models/Procedure';
1212
import CONFIG from '../../config/constants';
1313

1414
const sendNotifications = ({ tokenObjects, message }) => {
15+
// Disable Push Notifications
16+
return;
1517
const androidNotificationTokens = [];
1618
tokenObjects.forEach(({ token, os }) => {
1719
switch (os) {
@@ -107,6 +109,10 @@ const procedureUpdate = async ({ procedureId }) => {
107109
export { procedureUpdate, newVote, newPreperation };
108110

109111
export default async ({ message, user }) => {
112+
// Disable Push Notifications
113+
return;
114+
// This function seems to be (partly) a duplicate of the sendNotifications function
115+
// refactor?
110116
let userId;
111117
if (_.isObject(user)) {
112118
userId = user._id;

0 commit comments

Comments
 (0)