diff --git a/frontend/src/API/API.ts b/frontend/src/API/API.ts index f05d698..69a46af 100644 --- a/frontend/src/API/API.ts +++ b/frontend/src/API/API.ts @@ -4,7 +4,7 @@ import { User, Project, NewProject, - PublicUser, + UserProjectMember, } from "../Types/goTypes"; // This type of pattern should be hard to misuse @@ -52,7 +52,7 @@ interface API { getAllUsersProject( projectName: string, token: string, - ): Promise>; + ): Promise>; } // Export an instance of the API @@ -318,7 +318,7 @@ export const api: API = { async getAllUsersProject( projectName: string, token: string, - ): Promise> { + ): Promise> { try { const response = await fetch(`/api/getUsersProject/${projectName}`, { method: "GET", @@ -334,7 +334,7 @@ export const api: API = { message: "Failed to get users", }); } else { - const data = (await response.json()) as User[]; + const data = (await response.json()) as UserProjectMember[]; return Promise.resolve({ success: true, data }); } } catch (e) {