Skip to content

Commit cdafefa

Browse files
cubapCopilot
andauthored
Update controllers/delete.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d4f38a6 commit cdafefa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

controllers/delete.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const deleteObj = async function(req, res, next) {
2727
id = req.params["_id"] ?? parseDocumentID(JSON.parse(JSON.stringify(req.body))["@id"])
2828
} catch(error){
2929
next(createExpressError(error))
30+
return
3031
}
3132
let agentRequestingDelete = getAgentClaim(req, next)
3233
let originalObject

0 commit comments

Comments
 (0)