Skip to content

Commit

Permalink
chore(generate assignment): console.log(response) on frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
then00bprogrammer committed May 2, 2024
1 parent 1edbdac commit f348609
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions client/src/components/Assignment/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ const Content = () => {
setId(id);
const req = await fetch(`/api/subscribe?id=${id}`);
const resp = await req.json();
console.log(resp);
setIsPreviewAssignmentVisible(true);
} catch (error) {
console.log(error);
Expand Down
2 changes: 0 additions & 2 deletions client/src/pages/api/subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import Redis from 'ioredis';
export default async function handler(req:any, res:any) {
if (req.method === 'GET') {
const { id } = req.query;
console.log(id);
const key=`generate_assignment_id_${id}`
console.log(key)

const redis = new Redis(process.env.NEXT_PUBLIC_REDIS_URL as string);

Expand Down

0 comments on commit f348609

Please sign in to comment.