Pārlūkot izejas kodu

fix(core): Update translations parent `updatedAt` column when updating translation (#2630)

furo 2 gadi atpakaļ
vecāks
revīzija
44fc82888d

+ 2 - 0
packages/core/src/service/helpers/translatable-saver/translatable-saver.ts

@@ -105,6 +105,8 @@ export class TranslatableSaver {
             new entityType({ ...input, translations: existingTranslations }),
             new entityType({ ...input, translations: existingTranslations }),
             diff,
             diff,
         );
         );
+        entity.updatedAt = new Date();
+
         const updatedEntity = patchEntity(entity as any, omit(input, ['translations']));
         const updatedEntity = patchEntity(entity as any, omit(input, ['translations']));
         if (typeof beforeSave === 'function') {
         if (typeof beforeSave === 'function') {
             await beforeSave(entity);
             await beforeSave(entity);