Skip to content

Commit 5178f5e

Browse files
committed
fix lint
1 parent 37fb85d commit 5178f5e

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

src/services/UserMeetingSettingsService.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,13 @@ async function handleConnectCalendarCallback (reqQuery) {
224224
await processCreate(userMeetingSettings)
225225
} else { // or just update calendar details in the exisiting object
226226
const calendarIndexInUserMeetingSettings = _.findIndex(userMeetingSettings.nylasCalendars, (item) => item.id === calendarDetails.id)
227-
227+
228228
// clone Nylas calendar array and
229229
// if array item's index doesn't match with calendar index saved in Nylas backend, make it non-primary
230230
// but if it matches, update the calendar with newer details (which makes it primary too)
231-
let updatedNylasCalendarsArray = _.map(Array.from(userMeetingSettings.nylasCalendars), (item, index) => {
232-
if (index !== calendarIndexInUserMeetingSettings)
233-
return { ...item, isPrimary: false }
234-
231+
const updatedNylasCalendarsArray = _.map(Array.from(userMeetingSettings.nylasCalendars), (item, index) => {
232+
if (index !== calendarIndexInUserMeetingSettings) { return { ...item, isPrimary: false } }
233+
235234
return { ...item, ...calendarDetails }
236235
})
237236

@@ -286,7 +285,7 @@ async function deleteUserCalendar (currentUser, reqParams) {
286285
throw new Error('Calendar not found in UserMeetingSettings record.')
287286
} else {
288287
let deletingPrimaryCalendar
289-
288+
290289
// filter all calenders except the one to be deleted and
291290
// check if deleting calendar is primary
292291
const remainingCalendars = _.filter(userMeetingSettings.nylasCalendars, (item) => {

src/services/ZoomService.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ const jwt = require('jsonwebtoken')
44
const config = require('config')
55

66
// get & parse all Zoom account credentials in an in-memory array
7-
const ALL_ZOOM_ACCOUNTS = _.split(config['ZOOM_ACCOUNTS'], ',')
7+
const ALL_ZOOM_ACCOUNTS = _.split(config.ZOOM_ACCOUNTS, ',')
88
// this is the number of Zoom accounts left to use. This number gets reduced after each usage
99
let AVAILABLE_ZOOM_ACCOUNTS = ALL_ZOOM_ACCOUNTS.length
1010

11-
1211
/**
1312
* Generate a Zoom JWT bearer access token
1413
*
@@ -35,7 +34,6 @@ async function generateZoomJWTBearerAccessToken () {
3534
return token
3635
}
3736

38-
3937
/**
4038
* Create Zoom meeting via Zoom API
4139
*
@@ -62,13 +60,12 @@ async function createZoomMeeting () {
6260
}
6361
}
6462

65-
6663
/**
6764
* Generate Zoom meeting link
68-
*
65+
*
6966
* This method generates Zoom API JWT access token and uses it to
70-
* create a Zoom meeting and gets the meeting link.
71-
*
67+
* create a Zoom meeting and gets the meeting link.
68+
*
7269
* @returns The 'joining' url for the Zoom meeting
7370
*/
7471
async function generateZoomMeetingLink () {

0 commit comments

Comments
 (0)