mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-07-22 05:05:34 +00:00
Fix condition in track video lesson
This commit is contained in:
parent
069b92d634
commit
17928584f0
@ -41,7 +41,7 @@ const useTrackVideoLesson = ({lessonId, videoDuration, courseId, videoPlayed, pa
|
|||||||
decryptionPerformed
|
decryptionPerformed
|
||||||
});
|
});
|
||||||
|
|
||||||
if (paidCourse === false || (paidCourse && decryptionPerformed)) {
|
if (!paidCourse || (paidCourse && decryptionPerformed)) {
|
||||||
console.log('📝 [useTrackVideoLesson] Creating new lesson entry');
|
console.log('📝 [useTrackVideoLesson] Creating new lesson entry');
|
||||||
await axios.post(`/api/users/${session.user.id}/lessons?courseId=${courseId}`, {
|
await axios.post(`/api/users/${session.user.id}/lessons?courseId=${courseId}`, {
|
||||||
resourceId: lessonId,
|
resourceId: lessonId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user