-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displaying data from db #28
Conversation
src/utils/forminputhandling.ts
Outdated
const { data } = await instance.get(`/quiz?_page=${page}&_limit=${limit}`); | ||
async function getData(page: number, limit: number) { | ||
const { data } = await instance.get( | ||
`api/session?session_id_is_null=true&offset=${page}&limit=${limit}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you will need two functions. one where session id is null, and one where you make request directly to api/session?offset=${page}&limit=${limit}
and then process results.
also u need to display only quizzes for quiz creator part. that is, where platform variable is set to "quiz". for now, display those where platform variable is set to "meet" too. but eventually, we need a filter for this.
when we expand quiz creator to general session creator, we will have another tab wherein we display only "meet" platform sessions
Displaying Data from the Database