/img (fixed)

Błędy rzucane przez multer są teraz obsługiwane poprawnie
This commit is contained in:
2020-12-09 16:41:08 +01:00
parent f2dce7b5ae
commit 609f18291c
3 changed files with 20 additions and 16 deletions

View File

@@ -203,7 +203,7 @@ router.post("/trial", async (req, res) => {
const token = req.headers["x-auth-token"];
const user = validateUserToken(token);
await startTrial(req.body.restaurantId, user);
res.send("Trial aktywowany.");
res.send("Okres próbny aktywowany.");
} catch (error) {
handleError(error, res);
}