From c1ae107c1f86afce570d4f0d0a0bd7acaa9d519f Mon Sep 17 00:00:00 2001 From: Mikhail Trubnikov Date: Wed, 14 Jan 2026 10:34:37 +1000 Subject: [PATCH] =?UTF-8?q?fix(esppSync):=20=D1=88=D0=BE=D1=80=D1=82=D0=BA?= =?UTF-8?q?=D0=BE=D0=B4=D1=8B=20=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D0=BD=D1=8F?= =?UTF-8?q?=D1=8E=D1=82=D1=81=D1=8F=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE?= =?UTF-8?q?=20=D0=BA=20=D0=BF=D0=BE=D0=BB=D1=8F=D0=BC=20=D1=81=20=D1=82?= =?UTF-8?q?=D0=B8=D0=BF=D0=BE=D0=BC=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PARR.EsppSync/SyncService.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/PARR.EsppSync/SyncService.cs b/PARR.EsppSync/SyncService.cs index 032c27bb..055f860f 100644 --- a/PARR.EsppSync/SyncService.cs +++ b/PARR.EsppSync/SyncService.cs @@ -127,12 +127,16 @@ namespace PARR.EsppSync foreach (PropertyInfo property in properties) { - var value = property.GetValue(dbObjectInEsppObject)?.ToString(); + var type = property.PropertyType; + if(type == typeof(string)){ + // только для стрингов проверяем шорткоды + var value = property.GetValue(dbObjectInEsppObject)?.ToString(); - if (value != null) - { - var processedValue = await shortcodesService.ApplyShortcodesAsync(value, templateForShortcodes); - property.SetValue(dbObjectInEsppObject, processedValue); + if (value != null) + { + var processedValue = await shortcodesService.ApplyShortcodesAsync(value, templateForShortcodes); + property.SetValue(dbObjectInEsppObject, processedValue); + } } }