Update sleep delay

This commit is contained in:
Leonardo Murça 2022-09-17 17:03:05 -03:00
parent fb6e3ba82a
commit 742f6e2f78

View file

@ -53,7 +53,7 @@ const getAllAssignments = userId =>
}); });
const getAssignmentById = assignmentId => const getAssignmentById = assignmentId =>
sleep(4000).then(() => { sleep(400).then(() => {
console.log('Getting assignment by id ' + assignmentId); console.log('Getting assignment by id ' + assignmentId);
return { return {
data: allAssignments.filter(a => a.id === assignmentId)[0], data: allAssignments.filter(a => a.id === assignmentId)[0],