mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-04-22 12:56:37 +00:00
cleanup
This commit is contained in:
@@ -28,13 +28,6 @@ public class TileRepository : ITileRepository
|
||||
WHERE id = @Id";
|
||||
|
||||
var tile = await connection.QuerySingleOrDefaultAsync<TileEntity>(sql, new { Id = id });
|
||||
|
||||
if (tile != null)
|
||||
{
|
||||
_logger.LogInformation("TileRepository - Read tile {TileId} from DB: Lat={Lat:F12}, Lon={Lon:F12}, Zoom={Zoom}",
|
||||
id, tile.Latitude, tile.Longitude, tile.ZoomLevel);
|
||||
}
|
||||
|
||||
return tile;
|
||||
}
|
||||
|
||||
@@ -116,9 +109,6 @@ public class TileRepository : ITileRepository
|
||||
updated_at = EXCLUDED.updated_at
|
||||
RETURNING id";
|
||||
|
||||
_logger.LogInformation("TileRepository - Inserting tile {TileId} to DB: Lat={Lat:F12}, Lon={Lon:F12}, Zoom={Zoom}",
|
||||
tile.Id, tile.Latitude, tile.Longitude, tile.ZoomLevel);
|
||||
|
||||
return await connection.ExecuteScalarAsync<Guid>(sql, tile);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user