use constant rather than magic string

This commit is contained in:
sbwalker 2023-06-01 12:41:03 -04:00
parent c14dc67d8a
commit 613f4848da

View File

@ -15,7 +15,7 @@ namespace Oqtane.Infrastructure.EventSubscribers
public void EntityChanged(SyncEvent syncEvent)
{
if (syncEvent.EntityName == "Site" && syncEvent.Action == SyncEventActions.Refresh)
if (syncEvent.EntityName == EntityNames.Site && syncEvent.Action == SyncEventActions.Refresh)
{
_cache.Remove($"site:{syncEvent.TenantId}:{syncEvent.EntityId}");
}