Skip to content

Commit 2927301

Browse files
authored
Allow DELETE via PATCH/UPDATE operation too
1 parent 05bbc55 commit 2927301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/api3/generic/update/validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function validate (opCtx, doc, storageDoc, options) {
1919
const { isPatching, isDeduplication } = options || {};
2020

2121
const immutable = ['identifier', 'date', 'utcOffset', 'eventType', 'device', 'app',
22-
'srvCreated', 'subject', 'srvModified', 'modifiedBy', 'isValid'];
22+
'srvCreated', 'subject', 'srvModified', 'modifiedBy'];
2323

2424
if (storageDoc.isReadOnly === true || storageDoc.readOnly === true || storageDoc.readonly === true) {
2525
return opTools.sendJSONStatus(res, apiConst.HTTP.UNPROCESSABLE_ENTITY,
@@ -45,4 +45,4 @@ function validate (opCtx, doc, storageDoc, options) {
4545
return opTools.validateCommon(doc, res, { isPatching });
4646
}
4747

48-
module.exports = validate;
48+
module.exports = validate;

0 commit comments

Comments
 (0)