Skip to content

Commit

Permalink
fix(core): Update translations parent updatedAt column when updatin…
Browse files Browse the repository at this point in the history
…g translation (#2630)
  • Loading branch information
furo321 authored Jan 22, 2024
1 parent 81b4607 commit 44fc828
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ export class TranslatableSaver {
new entityType({ ...input, translations: existingTranslations }),
diff,
);
entity.updatedAt = new Date();

const updatedEntity = patchEntity(entity as any, omit(input, ['translations']));
if (typeof beforeSave === 'function') {
await beforeSave(entity);
Expand Down

0 comments on commit 44fc828

Please sign in to comment.