From 007132bab3fc8445ee0593a3677ee901c9441ff8 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Sun, 17 Mar 2024 20:44:46 +0100 Subject: [PATCH] Remove redundant stuff --- Minecraft-Realms-Emulator/Controllers/InvitesController.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Minecraft-Realms-Emulator/Controllers/InvitesController.cs b/Minecraft-Realms-Emulator/Controllers/InvitesController.cs index 0458375..c51f24a 100644 --- a/Minecraft-Realms-Emulator/Controllers/InvitesController.cs +++ b/Minecraft-Realms-Emulator/Controllers/InvitesController.cs @@ -137,14 +137,10 @@ namespace Minecraft_Realms_Emulator.Controllers [HttpDelete("{wId}/invite/{uuid}")] public async Task> DeleteInvite(int wId, string uuid) { - Console.WriteLine($"{wId} - {uuid}"); - var world = await _context.Worlds.FirstOrDefaultAsync(w => w.Id == wId); if (world == null) return NotFound("World not found"); - var players = world.Players.ToList(); - var player = _context.Players.Where(p => p.World.Id == wId).FirstOrDefault(p => p.Uuid == uuid); _context.Players.Remove(player); @@ -168,8 +164,6 @@ namespace Minecraft_Realms_Emulator.Controllers if (world == null) return NotFound("World not found"); - var players = world.Players.ToList(); - var player = _context.Players.Where(p => p.World.Id == wId).FirstOrDefault(p => p.Uuid == playerUUID); _context.Players.Remove(player);