|
1 | 1 | /* eslint no-underscore-dangle: ["error", { "allow": ["_id"] }] */ |
2 | 2 |
|
3 | | -import _ from 'lodash'; |
4 | | -import apn from 'apn'; |
5 | | -import gcm from 'node-gcm'; |
6 | | -import util from 'util'; |
| 3 | +// import _ from 'lodash'; |
| 4 | +// import apn from 'apn'; |
| 5 | +// import gcm from 'node-gcm'; |
| 6 | +// import util from 'util'; |
7 | 7 |
|
8 | | -import apnProvider from './apn'; |
9 | | -import gcmProvider from './gcm'; |
| 8 | +// import apnProvider from './apn'; |
| 9 | +// import gcmProvider from './gcm'; |
10 | 10 | import UserModel from '../../models/User'; |
11 | 11 | import ProcedureModel from '../../models/Procedure'; |
12 | | -import CONFIG from '../../config/constants'; |
| 12 | +// import CONFIG from '../../config/constants'; |
13 | 13 |
|
14 | | -const sendNotifications = ({ tokenObjects, message }) => { |
| 14 | +// TODO: remove both eslint-disable-line |
| 15 | +const sendNotifications = ({ tokenObjects, message }) => { // eslint-disable-line |
15 | 16 | // Disable Push Notifications |
16 | | - return; |
| 17 | + return; // eslint-disable-line |
17 | 18 | /* const androidNotificationTokens = []; |
18 | 19 | tokenObjects.forEach(({ token, os }) => { |
19 | 20 | switch (os) { |
@@ -108,9 +109,10 @@ const procedureUpdate = async ({ procedureId }) => { |
108 | 109 |
|
109 | 110 | export { procedureUpdate, newVote, newPreperation }; |
110 | 111 |
|
111 | | -export default async ({ message, user }) => { |
| 112 | +// TODO: remove both eslint-disable-line |
| 113 | +export default async ({ message, user }) => { // eslint-disable-line |
112 | 114 | // Disable Push Notifications |
113 | | - return; |
| 115 | + return; // eslint-disable-line |
114 | 116 | // This function seems to be (partly) a duplicate of the sendNotifications function |
115 | 117 | // refactor? |
116 | 118 | /* let userId; |
|
0 commit comments