From d7cf4d50416c7f50f932294f6b42cdbacb043768 Mon Sep 17 00:00:00 2001 From: Justin Gasper Date: Sun, 29 Oct 2023 07:45:12 +1100 Subject: [PATCH] Lint fixes --- src/api/projectMembers.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/api/projectMembers.js b/src/api/projectMembers.js index fd7cf7682..83e8e7f4f 100644 --- a/src/api/projectMembers.js +++ b/src/api/projectMembers.js @@ -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 @@ -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