Skip to content

Commit

Permalink
fix: do not treaty empty upload as error
Browse files Browse the repository at this point in the history
There are cases where you would like to know that no flaschards were created.
  • Loading branch information
aalemayhu authored Nov 27, 2023
1 parent a5a5c24 commit 0040d8d
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ class SimpleUploadController {
res.locals.patreon,
req.body
);
if (packages.length === 0) {
return res.status(400).json({
error: 'no decks created',
});
}

const response: CreatedDeck[] = createResponse(packages);
return res.json(response);
} catch (err) {
Expand Down

0 comments on commit 0040d8d

Please sign in to comment.