Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit ddee958

Browse files
committed
Update updated_at on save()
1 parent 7bfa1c0 commit ddee958

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/resources/base/CrudBase.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ export default class CrudBase extends ResourceBase {
123123
Object.assign(this._baseProperties, this._properties);
124124
this._properties = {};
125125

126+
if ('updated_at' in this._baseProperties) {
127+
this._baseProperties['updated_at'] = new Date();
128+
}
129+
126130
if (this.api.defaults.autoUpdateSharedCache) {
127131
this.api.cache.update(this);
128132
}

0 commit comments

Comments
 (0)