mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-04-22 12:36:39 +00:00
cleanup
This commit is contained in:
@@ -30,13 +30,6 @@ public class RegionRepository : IRegionRepository
|
||||
WHERE id = @Id";
|
||||
|
||||
var region = await connection.QuerySingleOrDefaultAsync<RegionEntity>(sql, new { Id = id });
|
||||
|
||||
if (region != null)
|
||||
{
|
||||
_logger.LogInformation("RegionRepository - Read region {RegionId} from DB: Lat={Lat:F12}, Lon={Lon:F12}, Status={Status}",
|
||||
id, region.Latitude, region.Longitude, region.Status);
|
||||
}
|
||||
|
||||
return region;
|
||||
}
|
||||
|
||||
@@ -71,9 +64,6 @@ public class RegionRepository : IRegionRepository
|
||||
@CreatedAt, @UpdatedAt)
|
||||
RETURNING id";
|
||||
|
||||
_logger.LogInformation("RegionRepository - Inserting region {RegionId} to DB: Lat={Lat:F12}, Lon={Lon:F12}, Status={Status}",
|
||||
region.Id, region.Latitude, region.Longitude, region.Status);
|
||||
|
||||
return await connection.ExecuteScalarAsync<Guid>(sql, region);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user