server: fix post 500 errors

This commit is contained in:
Max Leiter 2022-03-29 17:12:44 -07:00
parent 6de415ed99
commit 0504bd57e2
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA

View file

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