From e53a66e35dce52dda482e8384bdeec6167cfb1d3 Mon Sep 17 00:00:00 2001 From: vagusX Date: Fri, 9 Jun 2023 15:09:44 +0800 Subject: [PATCH] fix: typo in hooks.md (#392) --- docs/hooks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hooks.md b/docs/hooks.md index efc7b3d7..ec9dd488 100644 --- a/docs/hooks.md +++ b/docs/hooks.md @@ -91,7 +91,7 @@ Note that calling `save` may trigger the other functions' hooks (such as `create ```javascript instance.beforeUpsert(opts) // function's context is the instance -instance.bafterUpsert(instance, upsertResult) +instance.afterUpsert(instance, upsertResult) ``` ### remove @@ -130,7 +130,7 @@ instance.afterSave(instance, options) // upsert hooks instance.beforeUpsert(opts) -instance.bafterUpsert(instance, upsertResult) +instance.afterUpsert(instance, upsertResult) // remove hooks Model.beforeRemove(args)