Skip to content

Commit f93f9b2

Browse files
committed
fix: API call 함수 사용처 타입에 맞게 수정
1 parent e236158 commit f93f9b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/src/components/WorkspaceList/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function WorkspaceList({ onSelectModalOpen }: WorkspaceListProps) {
1616
const userContext = useContext(UserContext);
1717

1818
const updateWorkspaces = async (userId: number) => {
19-
const { workspaces } = await getWorkspaces(userId);
19+
const { workspaces } = await getWorkspaces({ id: userId });
2020
setWorkspaces(workspaces);
2121
};
2222

client/src/pages/OAuth/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function OAuthPage() {
1818

1919
const login = async (code: string) => {
2020
try {
21-
const authorizedUser = await postAuthLogin(code);
21+
const authorizedUser = await postAuthLogin({ code });
2222

2323
userContext.setUser(authorizedUser);
2424

0 commit comments

Comments
 (0)