Skip to content

Commit

Permalink
fix: correct type in exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
sebtiz13 committed Nov 13, 2024
1 parent e665514 commit cb62c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/shared/services/DigitalTwinExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
flattenObject,
} from "../";
import { NamedMeasures } from "../../decoder";
import { MeasureContent } from "../../measure";
import { MeasureContent, MeasureOriginDevice } from "../../measure";
import {
AskModelMeasureGet,
AssetModelContent,
Expand Down Expand Up @@ -193,7 +193,7 @@ export class DigitalTwinExporter extends AbstractExporter {
const measureName =
type === "asset"
? measure.asset.measureName
: measure.origin.measureName;
: (measure.origin as MeasureOriginDevice).measureName;

const embeddedMeasure: EmbeddedMeasure = {
measuredAt: measure.measuredAt,
Expand Down

0 comments on commit cb62c12

Please sign in to comment.