mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 07:03:38 +00:00
Update model.template
Wrong description of beforeSave and afterSave for model, since updating will not trigger these two hooks
This commit is contained in:
parent
4c72a53536
commit
87f8f91b52
@ -6,11 +6,11 @@
|
||||
|
||||
module.exports = {
|
||||
// Before saving a value.
|
||||
// Fired before an `insert` or `update` query.
|
||||
// Fired before an `insert`.
|
||||
// beforeSave: async (model) => {},
|
||||
|
||||
// After saving a value.
|
||||
// Fired after an `insert` or `update` query.
|
||||
// Fired after an `insert`.
|
||||
// afterSave: async (model, result) => {},
|
||||
|
||||
// Before fetching all values.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user