Update model.template

Wrong description of beforeSave and afterSave for model, since updating will not trigger these two hooks
This commit is contained in:
Nevermoi 2019-12-05 10:48:30 +08:00 committed by GitHub
parent 4c72a53536
commit 87f8f91b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.