forked from jappel/leistungsbilanz-ts
Add distribution power summaries
This commit is contained in:
parent
dcb303284c
commit
9ea081179d
28 changed files with 2668 additions and 77 deletions
|
|
@ -10,6 +10,7 @@ import {
|
|||
previousProjectStateSnapshotSchemaVersion,
|
||||
projectStateSnapshotSchemaVersion,
|
||||
supplyTypesProjectStateSnapshotSchemaVersion,
|
||||
voltageProjectStateSnapshotSchemaVersion,
|
||||
} from "../../domain/models/project-state-snapshot.model.js";
|
||||
import type {
|
||||
CreateNamedProjectSnapshotInput,
|
||||
|
|
@ -149,6 +150,8 @@ export class ProjectSnapshotRepository implements ProjectSnapshotStore {
|
|||
distributionBoardProjectStateSnapshotSchemaVersion &&
|
||||
stored.schemaVersion !==
|
||||
supplyTypesProjectStateSnapshotSchemaVersion &&
|
||||
stored.schemaVersion !==
|
||||
voltageProjectStateSnapshotSchemaVersion &&
|
||||
stored.schemaVersion !== projectStateSnapshotSchemaVersion
|
||||
) {
|
||||
throw new Error("Project snapshot schema version is not supported.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue