diff --git a/src/decorators/attribute.decorator.ts b/src/decorators/attribute.decorator.ts index 0caeab58..b67e631c 100644 --- a/src/decorators/attribute.decorator.ts +++ b/src/decorators/attribute.decorator.ts @@ -57,7 +57,7 @@ export function Attribute(options: AttributeDecoratorOptions = {}): PropertyDeco instance[AttributeMetadata] = {}; } - const propertyHasDirtyAttributes = typeof oldValue === 'undefined' && !isNew ? false : hasDirtyAttributes; + const propertyHasDirtyAttributes = (oldValue === newValue) ? false : hasDirtyAttributes; instance[AttributeMetadata][propertyName] = { newValue,