Skip to content

Commit 4836be0

Browse files
committed
fix: fixes bug with beforeGetItem hook
1 parent 267c4be commit 4836be0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/updateItem/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const updateItem: RequestHandlerFactory = <I extends Item>(
1111
config: FacadeConfig<I>
1212
) => async (req: Request, res: Response) => {
1313
const transactionHandler = _defaultTo(config.defaultTransactionHandler)(
14-
config.beforeGetItem
14+
config.beforeUpdateItem
1515
);
1616

1717
await transactionHandler({ req, res }, async () => {

0 commit comments

Comments
 (0)