Merge pull request #2858 from sbwalker/dev

use constant rather than magic string
This commit is contained in:
Shaun Walker 2023-06-01 12:41:14 -04:00 committed by GitHub
commit 87c7eafb87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}");
}