Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-asplin-met-no committed Oct 25, 2023
1 parent 23368fe commit 1cd0c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore/storagebackend/postgresql/putobservations.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func (sbe *PostgreSQL) PutObservations(request *datastore.PutObsRequest) error {
return fmt.Errorf("obs time too old: %v < %v", obsTime.AsTime(), loTime)
}

if obsTime.AsTime().Before(loTime) {
if obsTime.AsTime().After(hiTime) {
return fmt.Errorf("obs time too new: %v > %v", obsTime.AsTime(), hiTime)
}

Expand Down

0 comments on commit 1cd0c9a

Please sign in to comment.