Skip to content

Commit 268cf99

Browse files
committed
#2136 - type shit
1 parent 4413163 commit 268cf99

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/frontend/src/apis/users.api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import axios from '../utils/axios';
7-
import { Project, User, UserScheduleSettings, UserSecureSettings } from 'shared';
7+
import { Project, User, UserScheduleSettings, UserSecureSettings, UserWithScheduleSettings } from 'shared';
88
import { apiUrls } from '../utils/urls';
99
import { authUserTransformer, userTransformer } from './transformers/users.transformers';
1010
import { AuthenticatedUser, UserSettings } from 'shared';
@@ -14,7 +14,7 @@ import { projectTransformer } from './transformers/projects.transformers';
1414
* Fetches all users.
1515
*/
1616
export const getAllUsers = () => {
17-
return axios.get<User[]>(apiUrls.users(), {
17+
return axios.get<UserWithScheduleSettings[]>(apiUrls.users(), {
1818
transformResponse: (data) => JSON.parse(data).map(userTransformer)
1919
});
2020
};

0 commit comments

Comments
 (0)