Skip to content

Commit

Permalink
Merge pull request #257 from boostcampwm-2021/chore/x
Browse files Browse the repository at this point in the history
Chore/x
  • Loading branch information
LeeMir authored Dec 26, 2021
2 parents c19e626 + a0bf017 commit c525be1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion backend/src/controllers/team-contorller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const TeamController = {
try {
const teamRepository = getCustomRepository(TeamRepository);
const team = await teamRepository.read(req.params.teamId);
res.status(200).send(team[0]);
res.status(200).send(team);
} catch (err) {
res.sendStatus(409);
}
Expand Down
8 changes: 3 additions & 5 deletions backend/src/repositories/team-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ export default class TeamRepository extends AbstractRepository<Team> {
return insertResult.raw.insertId;
}

async read(team_id: number) {
console.log(team_id);
async read(teamId: number) {
const result = await this.repository
.createQueryBuilder('team')
.select()
.where(`team_id = :team_id`, { team_id })
.execute();
console.log(result);
.where(`team_id=:id`, { id: teamId })
.getOne();
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Board/Postit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const Footer = ({ createdBy, createdAt, updatedBy, updatedAt }: { [key: string]:
fontSize={FONT_SIZE.small}
width={POSTIT.WIDTH - 0.5 * PADDING}
height={FONT_SIZE.small}
y={FONT_SIZE.small}
y={FONT_SIZE.small + 0.25 * FONT_SIZE.small}
fill={ColorCode.GRAY}
wrap='none'
align='right'
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Users/UsersHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const UsersHeader: React.FC<Props> = ({ teamId }) => {
const teamInfo = useRecoilValue(teamInfoSelector(teamId));
return (
<UserHeaderContainer>
<Thumbnail team_id={teamInfo?.team_id} team_name={teamInfo?.team_name} />
<TeamName>{teamInfo?.team_name}</TeamName>
<Thumbnail team_id={teamInfo.team_id} team_name={teamInfo.team_name} />
<TeamName>{teamInfo.team_name}</TeamName>
</UserHeaderContainer>
);
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/BoardPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const BoardPage: React.FC<Props> = ({ match }) => {
const teamId = Number(match.params.teamId);
const teamUserList = useRecoilValue(teamUsersSelector(teamId));
const getUserNameById = (userId: number) =>
Object.values(teamUserList).find((user) => Number(user.userId) === Number(userId))?.name ?? '';
Object.values(teamUserList).find((user) => Number(user.userId) === Number(userId))?.name ?? '알 수 없음';

const socket = useContext(SocketContext).current;

Expand Down
4 changes: 4 additions & 0 deletions frontend/src/templates/UsersTemplate/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ export const ContentContainer = styled.div`
background-color: ${ColorCode.BACKGROUND2};
overflow-y: scroll;
min-width: 40rem;
::-webkit-scrollbar {
display: none;
}
`;

0 comments on commit c525be1

Please sign in to comment.