We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 556f64c commit 7103305Copy full SHA for 7103305
routes/overwrite.js
@@ -9,7 +9,7 @@ router.put('/', async (req, res, next) => {
9
const body = JSON.stringify(req.body)
10
11
// check for @id; any value is valid
12
- if (!(body['@id'] ?? body.id)) {
+ if (!(req.body['@id'] ?? req.body.id)) {
13
throw Error("No record id to overwrite! (https://centerfordigitalhumanities.github.io/rerum_server/API.html#overwrite)")
14
}
15
0 commit comments