Skip to content

Commit

Permalink
fix: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Apr 19, 2020
1 parent ab0f6c2 commit b1469c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ console.log(company.updatedOn); // Logs "2020-04-19T14:37:05.726Z" (same as save
console.log(company.savedOn); // Logs "2020-04-19T14:34:42.993Z" (same as updatedOn).
```

Note: you must have the [`withStorage`](https://github.com/webiny/commodo/tree/master/packages/fields-storage) higher order function applied, in order for the fields to work.
### `withCrudLogs` must be used with the `withStorage` HOF
In order to update the field values accordingly, the `withCrudLogs` higher order function utilizes the `beforeSave`, `beforeCreate`, and `beforeUpdate` hooks, which are created by the [`withStorage`](https://github.com/webiny/commodo/tree/master/packages/fields-storage) HOF.

## Contributors

Expand Down

0 comments on commit b1469c7

Please sign in to comment.