Skip to content

Commit

Permalink
Update options.md (#4621)
Browse files Browse the repository at this point in the history
Fix typo error udpatedBy -> updatedBy
  • Loading branch information
isjia authored and Noviny committed Apr 25, 2018
1 parent 76980d7 commit 437fea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/List/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Sets up 4 fields that will be attached to the list; `createdAt`, `createdBy`, `u
* createdAt adds a pre-save hook, and is set to `new Date()` if the item is new.
* updatedAt adds a pre-save hook, and is set to `new Date()` if the item is new or modified.
* createdBy is a relationship field to your [user model](/documentation/configuration/user-model/#user-model), which will be automatically set by the admin UI if the item is new.
* udpatedBy is a relationship field to your [user model](/documentation/configuration/user-model/#user-model), which will be automatically set by the admin UI if the item is new or modified.
* updatedBy is a relationship field to your [user model](/documentation/configuration/user-model/#user-model), which will be automatically set by the admin UI if the item is new or modified.

If you want to update `createdBy` and `updatedBy` on server side saves, you can use [updateItem](/api/list/update-item) to pass in a user.

Expand Down

0 comments on commit 437fea9

Please sign in to comment.