Skip to content

Commit

Permalink
Revert "[GGFE-122] admin 유저 정보 수정 버그 수정"
Browse files Browse the repository at this point in the history
  • Loading branch information
yoouyeon authored Jun 23, 2023
1 parent cde3134 commit 321aa73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/modal/admin/AdminProfileModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function AdminProfileModal(props: { intraId: string }) {
losses: '',
ppp: '',
email: '',
roleType: 'USER',
roleType: 'ROLE_USER',
});

const { imgData, imgPreview, uploadImg } = useUploadImg();
Expand Down
2 changes: 1 addition & 1 deletion pages/api/pingpong/admin/users/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function handler(
losses: 7,
ppp: 1004,
eMail: '[email protected]',
roleType: 'ADMIN',
roleType: 'ROLE_ADMIN',
},
];
res.status(200).json(user);
Expand Down
6 changes: 3 additions & 3 deletions types/admin/adminUserTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type UserInfo = {
};

export const roleTypes = [
{ id: 'USER', label: 'USER' },
{ id: 'GUEST', label: 'GUEST' },
{ id: 'ADMIN', label: 'ADMIN' },
{ id: 'ROLE_USER', label: 'USER' },
{ id: 'ROLE_MANAGER', label: 'MANAGER' },
{ id: 'ROLE_ADMIN', label: 'ADMIN' },
];

0 comments on commit 321aa73

Please sign in to comment.