indicate that the server and player was not in the cache

This commit is contained in:
Lee 2024-04-10 08:24:25 +01:00
parent 3a3a2e223f
commit b011fdbede
2 changed files with 2 additions and 0 deletions

@ -68,6 +68,7 @@ public class PlayerService {
); );
playerCacheRepository.save(player); playerCacheRepository.save(player);
player.setCached(-1); // Indicate that the player is not cached
return player; return player;
} }

@ -58,6 +58,7 @@ public class ServerService {
platform.getPinger().ping(hostname, port), platform.getPinger().ping(hostname, port),
System.currentTimeMillis() System.currentTimeMillis()
); );
server.setCached(-1); // Indicate that the server is not cached
serverCacheRepository.save(server); serverCacheRepository.save(server);
return server; return server;
} }