File tree Expand file tree Collapse file tree
SS14.MapServer/Controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ public class MapController : ControllerBase
2626 private readonly IJobSchedulingService _schedulingService ;
2727
2828 private readonly ServerConfiguration _serverConfiguration = new ( ) ;
29- private readonly BuildConfiguration _buildConfiguration = new ( ) ;
3029
3130 public MapController (
3231 Context context ,
@@ -47,12 +46,6 @@ public MapController(
4746 [ Produces ( "application/json" ) ]
4847 public async Task < ActionResult < IEnumerable < Map > > > GetMaps ( )
4948 {
50- if ( ! _buildConfiguration . Enabled )
51- return NotFound ( "Automated building features are disabled" ) ;
52-
53- if ( _context . Map == null )
54- return NotFound ( ) ;
55-
5649 var maps = await _context . Map . Include ( map => map . Grids ) . ToListAsync ( ) ;
5750 maps = maps . Select ( SetMapGridUrls ) . ToList ( ) ;
5851 return maps ;
You can’t perform that action at this time.
0 commit comments