Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Fix returning error code
Browse files Browse the repository at this point in the history
  • Loading branch information
Evers authored and Evers committed Mar 4, 2020
1 parent e880625 commit 60d1b8c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/services/lessons/lessons.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ class Lessons {

const [lesson, attachments, sections] = await Promise.all([
getLesson, findAttachments, findSections,
]).catch((err) => {
throw new BadRequest(this.err.get, err);
});
]);

if (!lesson) throw new NotFound();

Expand Down

0 comments on commit 60d1b8c

Please sign in to comment.