Skip to content

Commit

Permalink
apiv3 fix patch operation (#7807)
Browse files Browse the repository at this point in the history
Co-authored-by: Sulka Haro <sulka@sulka.net>
  • Loading branch information
MilosKozak and sulkaharo committed Jan 17, 2023
1 parent bc8ccc8 commit c343719
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/api3/generic/patch/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ async function patch (opCtx) {
}

await security.demandPermission(opCtx, `api:${col.colName}:update`);

col.parseDate(doc);

// parseDate is not valid for patch operation
// (it is adding new fields)
// col.parseDate(doc);
const identifier = req.params.identifier
, identifyingFilter = col.storage.identifyingFilter(identifier);

Expand Down

0 comments on commit c343719

Please sign in to comment.