[F] Use scoreId instead of assignmentId when requesting

This commit is contained in:
Hykilpikonna
2019-10-13 15:27:02 -04:00
parent 0b65ebbb00
commit 9aaf662a60
@@ -33,13 +33,13 @@ export default class OverallCourse extends Vue
*/
markAsRead(assignment: Assignment)
{
App.http.post('/mark-as-read', {csrf: App.http.csrf, scoreId: assignment.id})
App.http.post('/mark-as-read', {csrf: App.http.csrf, scoreId: assignment.scoreId})
.then(response =>
{
// Check success
if (response.success)
{
this.unreadAssignments = this.unreadAssignments.filter(a => a.id == assignment.id);
this.unreadAssignments = this.unreadAssignments.filter(a => a == assignment);
this.unread = this.unreadAssignments.length;
}
else