Skip to content

Commit 4ed8118

Browse files
author
Ben Hanna
committed
Added transform to the update handler.
1 parent dcde046 commit 4ed8118

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
@@ -80,7 +80,7 @@ class ModelHandler {
8080
try {
8181
const row = await this.findOne(req, res, next);
8282
const updated = await row.updateAttributes(req.body);
83-
res.send(updated);
83+
res.send(res.transform(updated));
8484
} catch (error) {
8585
next(error);
8686
}

0 commit comments

Comments
 (0)