Skip to content

Commit 7103305

Browse files
committed
update change shared
1 parent 556f64c commit 7103305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/overwrite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ router.put('/', async (req, res, next) => {
99
const body = JSON.stringify(req.body)
1010

1111
// check for @id; any value is valid
12-
if (!(body['@id'] ?? body.id)) {
12+
if (!(req.body['@id'] ?? req.body.id)) {
1313
throw Error("No record id to overwrite! (https://centerfordigitalhumanities.github.io/rerum_server/API.html#overwrite)")
1414
}
1515

0 commit comments

Comments
 (0)