fix: TypeError in HistoryEntryImportDto

For reasons, during testing, reflect-metadata might not be imported.
This causes the `@Type` annotation to crash the test with a TypeError.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-03-06 17:26:53 +01:00
parent f9448bb801
commit 89297e748f

View file

@ -11,6 +11,8 @@ import {
IsString,
ValidateNested,
} from 'class-validator';
// This needs to be here because of weird import-behaviour during tests
import 'reflect-metadata';
import { BaseDto } from '../utils/base.dto.';