Skip to content

Commit 8de50bf

Browse files
committed
fixed lint errors
1 parent b9e92c5 commit 8de50bf

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/services/notifications/index.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
/* eslint no-underscore-dangle: ["error", { "allow": ["_id"] }] */
22

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';
77

8-
import apnProvider from './apn';
9-
import gcmProvider from './gcm';
8+
// import apnProvider from './apn';
9+
// import gcmProvider from './gcm';
1010
import UserModel from '../../models/User';
1111
import ProcedureModel from '../../models/Procedure';
12-
import CONFIG from '../../config/constants';
12+
// import CONFIG from '../../config/constants';
1313

14-
const sendNotifications = ({ tokenObjects, message }) => {
14+
// TODO: remove both eslint-disable-line
15+
const sendNotifications = ({ tokenObjects, message }) => { // eslint-disable-line
1516
// Disable Push Notifications
16-
return;
17+
return; // eslint-disable-line
1718
/* const androidNotificationTokens = [];
1819
tokenObjects.forEach(({ token, os }) => {
1920
switch (os) {
@@ -108,9 +109,10 @@ const procedureUpdate = async ({ procedureId }) => {
108109

109110
export { procedureUpdate, newVote, newPreperation };
110111

111-
export default async ({ message, user }) => {
112+
// TODO: remove both eslint-disable-line
113+
export default async ({ message, user }) => { // eslint-disable-line
112114
// Disable Push Notifications
113-
return;
115+
return; // eslint-disable-line
114116
// This function seems to be (partly) a duplicate of the sendNotifications function
115117
// refactor?
116118
/* let userId;

0 commit comments

Comments
 (0)