Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Oct 28, 2023
1 parent 310078c commit d7cf4d5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/api/projectMembers.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import _ from 'lodash'
import { axiosInstance as axios } from './requestInterceptor'
import { TC_API_URL, PROJECTS_API_URL } from '../config/constants'

export function getMembersById (userIds) {
// only requesting certain member attributes
const fields = 'userId,handle,photoURL,firstName,lastName'
const url = `${TC_API_URL}/v5/members?userIds=[${userIds.join(',')}]&fields=${encodeURIComponent(fields)}`;
const url = `${TC_API_URL}/v5/members?userIds=[${userIds.join(',')}]&fields=${encodeURIComponent(fields)}`
return axios.get(url)
.then(resp => {
return resp.data
Expand All @@ -15,8 +14,8 @@ export function getMembersById (userIds) {
export function getMembersByHandle (handles) {
// only requesting certain member attributes
const fields = 'userId,handle,photoURL,firstName,lastName'
const quotedHandles = handles.map(handle => JSON.stringify(handle)).join(',');
const url = `${TC_API_URL}/v5/members?handles=[${quotedHandles}]&fields=${encodeURIComponent(fields)}`;
const quotedHandles = handles.map(handle => JSON.stringify(handle)).join(',')
const url = `${TC_API_URL}/v5/members?handles=[${quotedHandles}]&fields=${encodeURIComponent(fields)}`
return axios.get(url)
.then(resp => {
return resp.data
Expand Down

0 comments on commit d7cf4d5

Please sign in to comment.