Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Refresh.Core/Extensions/GameAssetExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ private static string TransformImage(this GameAsset asset, TokenGame game, IData
hash =>
{
dataContext.Database.SetMainlinePhotoHash(asset, hash);
dataContext.Cache.CacheAsset(asset.AssetHash, asset);
},
() => throw new NotSupportedException(),
_ => throw new NotSupportedException()
Expand All @@ -179,13 +178,11 @@ private static string TransformImage(this GameAsset asset, TokenGame game, IData
hash =>
{
dataContext.Database.SetMainlineIconHash(asset, hash);
dataContext.Cache.CacheAsset(asset.AssetHash, asset);
},
() => asset.AsMipIconHash,
hash =>
{
dataContext.Database.SetMipIconHash(asset, hash);
dataContext.Cache.CacheAsset(asset.AssetHash, asset);
}
);
}
Expand Down
2 changes: 1 addition & 1 deletion Refresh.Core/Helpers/ResourceValidationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static ValidatedAssetResult ValidateReference(AssetValidationParameters p
return new(NotFound, null, $"The used {assetTypeStr} did not exist on the server.");
}

asset = parameters.Cache.GetAssetInfo(parameters.AssetRef, parameters.Database);
asset = parameters.Database.GetAssetFromHash(parameters.AssetRef);

// Only try to import if the asset exists in the data store
if (existsInDataStore && asset == null)
Expand Down
Loading
Loading