Skip to content

Commit 41bba5a

Browse files
authored
Minor Updates for Collaborators and Implementers (#204)
* Minor language improvements around '@id' and 'id'. Update delte documentation to include the alternate pattern. * Adjusting API for how a couple things work right now. * another touch
1 parent f6696dc commit 41bba5a

File tree

3 files changed

+303
-478
lines changed

3 files changed

+303
-478
lines changed

controllers/delete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const deleteObj = async function(req, res, next) {
2424
let id
2525
let err = { message: `` }
2626
try {
27-
id = req.params["_id"] ?? parseDocumentID(JSON.parse(JSON.stringify(req.body))["@id"])
27+
id = req.params["_id"] ?? parseDocumentID(JSON.parse(JSON.stringify(req.body))["@id"]) ?? parseDocumentID(JSON.parse(JSON.stringify(req.body))["id"])
2828
} catch(error){
2929
next(createExpressError(error))
3030
return

0 commit comments

Comments
 (0)