Skip to content

Commit

Permalink
Restore the onIncomingRequest for PATCH handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
stormbard committed Dec 13, 2023
1 parent fa49076 commit 1510c42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/server/src/handlers/PatchHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export class PatchHandler extends BaseHandler {
throw ERRORS.INVALID_CONTENT_TYPE
}

if (this.options.onIncomingRequest) {
await this.options.onIncomingRequest(req, res, id)
}

const lock = await this.acquireLock(req, id, context)

let upload: Upload
Expand Down

0 comments on commit 1510c42

Please sign in to comment.