Fix upcoming assignments mock fetching
This commit is contained in:
parent
eac9146d58
commit
af37f8a863
2 changed files with 3 additions and 3 deletions
|
@ -144,7 +144,7 @@ const allAssignments = [
|
||||||
classrooms: allClassrooms.filter(c => c.id === '666'),
|
classrooms: allClassrooms.filter(c => c.id === '666'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '1234',
|
id: '9283764',
|
||||||
type: 'assessment',
|
type: 'assessment',
|
||||||
title: 'Atividade 2 - Estudo de caso Sapiens Informática',
|
title: 'Atividade 2 - Estudo de caso Sapiens Informática',
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -38,8 +38,8 @@ const getUpcomingAssignmentsByClassId = classId =>
|
||||||
sleep(300).then(() => {
|
sleep(300).then(() => {
|
||||||
console.log('Getting upcoming assignments by class id ' + classId);
|
console.log('Getting upcoming assignments by class id ' + classId);
|
||||||
return {
|
return {
|
||||||
data: allUpcomingAssignments.filter(a =>
|
data: allUpcomingAssignments.filter(
|
||||||
a.classrooms.filter(c => c.id === classId)
|
a => a.classrooms.filter(c => c.id === classId)[0]
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue