Skip to content

Commit a8ba522

Browse files
author
Ben Hanna
committed
Fixed an error in the update handler.
1 parent 067a22f commit a8ba522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class ModelHandler {
9191
raw,
9292
async (req, res, next) => {
9393
try {
94-
const row = await this.findOne(req, res, next);
94+
const row = await this.findOne(req.params);
9595

9696
if (!row) {
9797
throw new HttpStatusError(404, 'Not Found');

0 commit comments

Comments
 (0)