Skip to content

Commit

Permalink
Use Token for injection instead of TokenPlatform
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Sep 16, 2023
1 parent feacf49 commit b7e8f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Refresh.GameServer/Endpoints/Game/ResourceEndpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ResourceEndpoints : EndpointGroup
[GameEndpoint("upload/{hash}", Method.Post)]
[SuppressMessage("ReSharper", "ConvertIfStatementToReturnStatement")]
public Response UploadAsset(RequestContext context, string hash, string type, byte[] body, IDataStore dataStore,
GameDatabaseContext database, GameUser user, AssetImporter importer, GameServerConfig config, IDateTimeProvider timeProvider, TokenPlatform platform)
GameDatabaseContext database, GameUser user, AssetImporter importer, GameServerConfig config, IDateTimeProvider timeProvider, Token token)
{
bool isPSP = context.IsPSP();

Expand All @@ -34,7 +34,7 @@ public Response UploadAsset(RequestContext context, string hash, string type, by
if (dataStore.ExistsInStore(assetPath))
return Conflict;

GameAsset? gameAsset = importer.ReadAndVerifyAsset(hash, body, platform);
GameAsset? gameAsset = importer.ReadAndVerifyAsset(hash, body, token.TokenPlatform);
if (gameAsset == null)
return BadRequest;

Expand Down

0 comments on commit b7e8f98

Please sign in to comment.