Skip to content

Commit

Permalink
fix submissions error bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aaravbajaj012 committed Jan 27, 2024
1 parent c0af0c8 commit b621928
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/pages/api/user/match-history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default async function handler(
outcome: item.placement ? item.placement.N.toString() : 'PENDING',
type: item.category.S,
replay: item.s3_key
? process.env.MATCH_S3_URL_TEMPLATE + item.s3_key.S
? process.env.REPLAY_S3_URL_TEMPLATE + item.s3_key.S
: null,
status: item.item_status.S,
}));
Expand Down
1 change: 0 additions & 1 deletion src/pages/api/user/match-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default async function handler(

return res.status(200).send({ message: 'Success', data: response.data });
} catch (err) {
console.log(err);
return res
.status(500)
.send({
Expand Down
2 changes: 1 addition & 1 deletion src/pages/user/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const Profile: NextPage = ({
const createTeam = async (user: string | null | undefined) => {
if (!user) return;
const teamName = document.getElementById('teamname') as HTMLInputElement;
// console.log(teamName);

const teamNameValue = teamName.value;
await axios
.post('/api/user/create-team', {
Expand Down
6 changes: 3 additions & 3 deletions src/pages/user/submissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
teamData: {
team,
submissionData: [],
configData: configs,
},
configData: configs,
},
};
}
Expand All @@ -359,8 +359,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
teamData: {
team,
submissionData: [],
configData: config,
},
configData: configs,
},
};
}
Expand Down Expand Up @@ -397,8 +397,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
teamData: {
team,
submissionData,
configData: config,
},
configData: configs,
},
};
};
Expand Down

0 comments on commit b621928

Please sign in to comment.