Skip to content

Commit c9e6f18

Browse files
committed
Fix formatting
1 parent 7ed60e9 commit c9e6f18

6 files changed

Lines changed: 20 additions & 17 deletions

File tree

api.Tests/Mocks/RecordingTimeseriesService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ public Task TriggerTimeseriesUpload(TriggerTimeseriesUploadRequest uploadRequest
2222
return Task.CompletedTask;
2323
}
2424

25-
public Task<double?> FetchCO2ConcentrationFromTimeseries(FetchCO2MeasurementRequest fetchRequest)
25+
public Task<double?> FetchCO2ConcentrationFromTimeseries(
26+
FetchCO2MeasurementRequest fetchRequest
27+
)
2628
{
2729
return Task.FromResult<double?>(null);
2830
}

api/Services/AnalysisGroupService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class AnalysisGroupService(SaraDbContext context) : IAnalysisGroupService
2929
return await context
3030
.AnalysisGroups.Include(g => g.InspectionRecords)
3131
.Include(g => g.Analyses)
32-
.ThenInclude(a => a.Runs)
32+
.ThenInclude(a => a.Runs)
3333
.FirstOrDefaultAsync(g => g.Id == id);
3434
}
3535

@@ -59,8 +59,8 @@ public async Task Delete(Guid id)
5959
{
6060
var group = await context
6161
.AnalysisGroups.Include(g => g.Analyses)
62-
.ThenInclude(a => a.Runs)
63-
.ThenInclude(r => r.Workflows)
62+
.ThenInclude(a => a.Runs)
63+
.ThenInclude(r => r.Workflows)
6464
.Include(g => g.InspectionRecords)
6565
.FirstOrDefaultAsync(g => g.Id == id);
6666

api/Services/AnalysisRunService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class AnalysisRunService(SaraDbContext context) : IAnalysisRunService
2929
return await context
3030
.AnalysisRuns.Include(r => r.Analysis)
3131
.Include(r => r.Workflows)
32-
.ThenInclude(w => w.InputBlobStorageLocations)
32+
.ThenInclude(w => w.InputBlobStorageLocations)
3333
.FirstOrDefaultAsync(r => r.Id == id);
3434
}
3535

api/Services/AnalysisService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class AnalysisService(SaraDbContext context) : IAnalysisService
3232
return await context
3333
.Analyses.Include(a => a.InspectionRecords)
3434
.Include(a => a.Runs)
35-
.ThenInclude(r => r.Workflows)
35+
.ThenInclude(r => r.Workflows)
3636
.FirstOrDefaultAsync(a => a.Id == id);
3737
}
3838

@@ -49,7 +49,7 @@ public async Task<PagedList<Analysis>> GetAnalyses(AnalysisParameters parameters
4949
var query = context
5050
.Analyses.Include(a => a.InspectionRecords)
5151
.Include(a => a.Runs)
52-
.ThenInclude(r => r.Workflows)
52+
.ThenInclude(r => r.Workflows)
5353
.AsQueryable();
5454

5555
if (!string.IsNullOrWhiteSpace(parameters.Name))
@@ -74,7 +74,7 @@ public async Task Delete(Guid id)
7474
{
7575
var analysis = await context
7676
.Analyses.Include(a => a.Runs)
77-
.ThenInclude(r => r.Workflows)
77+
.ThenInclude(r => r.Workflows)
7878
.FirstOrDefaultAsync(a => a.Id == id);
7979

8080
if (analysis is null)

api/Services/AnalysisTriggerService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ IReadOnlyList<InspectionRecord> inspectionRecords
254254
await context
255255
.AnalysisRuns.Where(r => r.AnalysisId == analysis.Id)
256256
.Select(r => (int?)r.RunNumber)
257-
.MaxAsync() ?? 0;
257+
.MaxAsync()
258+
?? 0;
258259
nextRunNumber += 1;
259260

260261
var run = new AnalysisRun

api/Services/InspectionRecordService.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,17 @@ public async Task<InspectionRecord> Create(InspectionRecord inspectionRecord)
113113
{
114114
return await context
115115
.InspectionRecords.Include(ir => ir.Analyses)
116-
.ThenInclude(a => a.Runs)
117-
.ThenInclude(r => r.Workflows)
116+
.ThenInclude(a => a.Runs)
117+
.ThenInclude(r => r.Workflows)
118118
.FirstOrDefaultAsync(ir => ir.Id == id);
119119
}
120120

121121
public async Task<InspectionRecord?> ReadByInspectionId(string inspectionId)
122122
{
123123
return await context
124124
.InspectionRecords.Include(ir => ir.Analyses)
125-
.ThenInclude(a => a.Runs)
126-
.ThenInclude(r => r.Workflows)
125+
.ThenInclude(a => a.Runs)
126+
.ThenInclude(r => r.Workflows)
127127
.FirstOrDefaultAsync(ir => ir.InspectionId == inspectionId);
128128
}
129129

@@ -182,8 +182,8 @@ public async Task Delete(Guid id)
182182
{
183183
var record = await context
184184
.InspectionRecords.Include(ir => ir.Analyses)
185-
.ThenInclude(a => a.Runs)
186-
.ThenInclude(r => r.Workflows)
185+
.ThenInclude(a => a.Runs)
186+
.ThenInclude(r => r.Workflows)
187187
.FirstOrDefaultAsync(ir => ir.Id == id);
188188

189189
if (record is null)
@@ -226,8 +226,8 @@ InspectionRecordParameters parameters
226226
{
227227
var query = context
228228
.InspectionRecords.Include(ir => ir.Analyses)
229-
.ThenInclude(a => a.Runs)
230-
.ThenInclude(r => r.Workflows)
229+
.ThenInclude(a => a.Runs)
230+
.ThenInclude(r => r.Workflows)
231231
.AsQueryable();
232232

233233
if (!string.IsNullOrWhiteSpace(parameters.InspectionId))

0 commit comments

Comments
 (0)