Skip to content

Commit

Permalink
satisfy eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ssb-jnk committed Feb 27, 2024
1 parent 1d6be46 commit 5db5a69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/teamMembers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export interface User {
section_manager: sectionManager[]
teams: Team[]
groups: Group[]
// eslint-disable-next-line
_embedded?: any
}

interface sectionManager {
Expand Down Expand Up @@ -171,7 +173,7 @@ export const fetchAllUsers = async (accessToken: string): Promise<UsersData> =>
if (!jsonData) throw new ApiError(500, 'No json data returned')
if (!jsonData._embedded || !jsonData._embedded.users) throw new ApiError(500, 'Did not receive users data')

const transformedData = jsonData._embedded.users.map((user: any) => {
const transformedData = jsonData._embedded.users.map((user: User) => {
const userFormatted = {
...user,
...user._embedded,
Expand Down

0 comments on commit 5db5a69

Please sign in to comment.