Skip to content

Commit

Permalink
added: more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din committed Mar 13, 2024
1 parent 9b75584 commit 9fb40fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pages/timetable/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export async function getStaticPaths() {

export async function getStaticProps(context: GetStaticPropsContext) {
const id = context.params!.id;
console.log('got id ', id);
const { data } = await axios.get(`${APIS_ENDPOINTS.TIMETABLE}${id}.json`);
const timetable = decrypt(data);

Expand Down
2 changes: 1 addition & 1 deletion src/pages/timetable/rooms/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface TimetableDoc extends TimetableDocType {

export async function getStaticProps(context: GetStaticPropsContext) {
const id = context.params!.id;

console.log('got id ', id);
const { data } = await axios.get(`${APIS_ENDPOINTS.TIMETABLE}${id}.json`);
const timetable = decrypt(data);

Expand Down
1 change: 1 addition & 0 deletions src/pages/timetable/teachers/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ interface TimetableDoc extends TimetableDocType {

export async function getStaticProps(context: GetStaticPropsContext) {
const id = context.params!.id;
console.log('got id ', id);
const { data } = await axios.get(`${APIS_ENDPOINTS.TIMETABLE}${id}.json`);
const timetable = decrypt(data);
return {
Expand Down

0 comments on commit 9fb40fb

Please sign in to comment.