-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: LC-368 stats backend #233
Conversation
6e7e8e2
to
13eadd2
Compare
@@ -120,7 +121,7 @@ export class AuthService { | |||
const tokens = await this.getTokens(user); | |||
return tokens; | |||
} catch (error) { | |||
throw new UnauthorizedException("Invalid refresh token"); | |||
throw new ForbiddenException("Invalid refresh token"); |
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.
this probably should fix our problem with infinite /refresh requests
let correctAnswers = 0; | ||
let wrongAnswers = 0; |
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.
@wielopolski any ideas on how to get this data in a better way?
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.
maybe
let correctAnswers = 0; | |
let wrongAnswers = 0; | |
const correctAnswerCount = questionLessonItem.content.questionAnswers | |
.filter(answer => Boolean(answer.isCorrect)) | |
.length; | |
const wrongAnswerCount = totalQuestions - correctAnswerCount |
13eadd2
to
aad2dcf
Compare
aad2dcf
to
34d6b10
Compare
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.
LGTM 🍻
I left suggestion
let correctAnswers = 0; | ||
let wrongAnswers = 0; |
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.
maybe
let correctAnswers = 0; | |
let wrongAnswers = 0; | |
const correctAnswerCount = questionLessonItem.content.questionAnswers | |
.filter(answer => Boolean(answer.isCorrect)) | |
.length; | |
const wrongAnswerCount = totalQuestions - correctAnswerCount |
34d6b10
to
5bc8c07
Compare
Jira issue(s)
https://selleolabs.atlassian.net/browse/LC-371
https://selleolabs.atlassian.net/browse/LC-375
https://selleolabs.atlassian.net/browse/LC-376
https://selleolabs.atlassian.net/browse/LC-377
https://selleolabs.atlassian.net/browse/LC-378
Overview