Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Fix oversight of LiRA's IRI
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-sti1 committed Dec 16, 2023
1 parent 86be3b5 commit 0397479
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/conditions/rc.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export class RCService {
db.raw('ST_MakePoint(longitude,latitude) as section_geom'),
'timestamp',
)
.where('type_index', '<=', MeasurementType['DI'])
.whereIn('type_index', [
...Array(MeasurementType['DI'] + 1).keys(),
MeasurementType['IRI'],
])
.whereNotNull('latitude')
.whereNotNull('longitude');

Expand Down
1 change: 1 addition & 0 deletions backend/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export enum MeasurementType {
E_areo_std = 30,
E_norm_std = 31,
mu_std = 32,
IRI = 33,
}

/** An array of surveys, identified by their id and timestamp. */
Expand Down

0 comments on commit 0397479

Please sign in to comment.