Skip to content

Commit

Permalink
fix setting modified on deleted resources
Browse files Browse the repository at this point in the history
  • Loading branch information
karel kremer committed Jan 23, 2025
1 parent 807316a commit 1ab3457
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/mandataris.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ export default class MandatarisModel extends Model {

async save() {
const creating = !this.id;
this.modified = new Date();
if (!this.isDeleted) {
this.modified = new Date();
}
const result = await super.save(...arguments);
if (creating) {
await fetch(
Expand Down

0 comments on commit 1ab3457

Please sign in to comment.