Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xibre authored and Bryan Clark committed Feb 28, 2018
1 parent cd2348e commit 52cffe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ You can also configure whether `createdAt` and `updatedAt` are required or not.

By setting the `validateUpsert` option to true you will prevent this mixin from overriding the default Model settings. With validation turned on most upsert operations will fail with validation errors about missing the required fields like `createdAt` or `updatedAt`.

This mixin uses console logs to warn you whenever something might need your attention. If you would prefer not to receive these warnings, you can disable them by setting the option `silenceWarnings` to `false` on a per model basis.
This mixin uses console logs to warn you whenever something might need your attention. If you would prefer not to receive these warnings, you can disable them by setting the option `silenceWarnings` to `true` on a per model basis.

In this example we change `createdAt` and `updatedAt` to `createdOn` and `updatedOn`, respectively. We also change the default `required` to `false` and set `validateUpsert` to true. We also disable console warnings with `silenceWarnings`.

Expand All @@ -97,7 +97,7 @@ In this example we change `createdAt` and `updatedAt` to `createdOn` and `update
"updatedAt" : "updatedOn",
"required" : false,
"validateUpsert": true,
"silenceWarnings": false
"silenceWarnings": true
}
}
}
Expand Down

0 comments on commit 52cffe1

Please sign in to comment.