Skip to content
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

Add post quiz request to lambda QuizFunction #140

Merged

Conversation

lrboyer
Copy link
Collaborator

@lrboyer lrboyer commented Nov 15, 2023

Adds business logic to quiz lambda for handling a POST request.

Steps for adding quiz info to db:
1. Check if quiz_id exist in quiz_list
- if not -> add quiz_id to quiz_list
2. Format incoming data for db
3. Insert quiz_info into quiz_progress_table

"last_updated" will be included in test request as a TTL for the data. This way test request expire from the quiz_list and quiz_progress table.

The ttl in add_quiz_info was not being set correctly. This fixes it
@Mjtlittle Mjtlittle merged commit 4ebefcd into clemsonMakerspace:mainline Dec 13, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants