File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/services/notifications Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ import ProcedureModel from '../../models/Procedure';
12
12
import CONFIG from '../../config/constants' ;
13
13
14
14
const sendNotifications = ( { tokenObjects, message } ) => {
15
+ // Disable Push Notifications
16
+ return ;
15
17
const androidNotificationTokens = [ ] ;
16
18
tokenObjects . forEach ( ( { token, os } ) => {
17
19
switch ( os ) {
@@ -107,6 +109,10 @@ const procedureUpdate = async ({ procedureId }) => {
107
109
export { procedureUpdate , newVote , newPreperation } ;
108
110
109
111
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?
110
116
let userId ;
111
117
if ( _ . isObject ( user ) ) {
112
118
userId = user . _id ;
You can’t perform that action at this time.
0 commit comments