server: fix post 500 errors

pull/56/head
Max Leiter 4 years ago
parent 6de415ed99
commit 0504bd57e2
No known key found for this signature in database
GPG Key ID: A3512F2F2F17EBDA

@ -98,7 +98,7 @@ posts.post(
res.json(newPost) res.json(newPost)
} catch (e) { } catch (e) {
next(e) res.status(400).json(e)
} }
} }
) )
@ -274,7 +274,7 @@ posts.get(
res.json(post) res.json(post)
} }
} catch (e) { } catch (e) {
next(e) res.status(400).json(e)
} }
} }
) )

Loading…
Cancel
Save