Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Fixes:
Resolves #811
Most of the code and functions were already written, but they were not used (weird). So i used them at appropriate place.
To be specific, i used the
getNextVideo
function insrc/app/courses/[courseId]/[...moduleId]/page.tsx
which was exported fromsrc/db/course.ts
Also, when you click on next video button, it automatically marks the current video as "complete", and then redirects to next video.
In order to test it, i had to add another video in week 1, so just like the first video, i took a video link from w3schools
this one and modified
seed.ts
to add it in db.Also, there were some warnings that were annoying me like
use strokeLinecap instead
, so fixed them too.Also, modified
.gitignore
file, added./idea
folder. its a folder that is made when working in Webstorm IDE.i more thing, when i ran
npm run build
, it gave the following error:so i added await in in
src/actions/refresh-db/index.ts
and it solved the issue, but i don't have much idea about it.please check this.
Checklist before requesting a review