Skip to content

Commit

Permalink
refactor(model): remove extra param onInsert from setUpdatedAt method`
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Dec 21, 2018
1 parent f8b5809 commit e979972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lucid/Model/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ class Model extends BaseModel {
*
* @private
*/
_setUpdatedAt (values, onInsert) {
_setUpdatedAt (values) {
const updatedAtColumn = this.constructor.updatedAtColumn
if (updatedAtColumn && !this.dirty[updatedAtColumn]) {
values[updatedAtColumn] = this._getSetterValue(updatedAtColumn, new Date())
Expand Down

0 comments on commit e979972

Please sign in to comment.