fix: ReferenceError

ReferenceError: Cannot access 'ReturnValue' before initialization
This commit is contained in:
Tibo De Peuter 2025-03-12 15:33:42 +01:00
parent 9d0e63649b
commit 45b1b75cd6
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -6,6 +6,24 @@ import { DwengoContentType } from '../../services/learning-objects/processing/co
import { v4 } from 'uuid';
import { LearningObjectRepository } from '../../data/content/learning-object-repository.js';
@Embeddable()
export class EducationalGoal {
@Property({ type: 'string' })
source!: string;
@Property({ type: 'string' })
id!: string;
}
@Embeddable()
export class ReturnValue {
@Property({ type: 'string' })
callbackUrl!: string;
@Property({ type: 'json' })
callbackSchema!: string;
}
@Entity({ repository: () => LearningObjectRepository })
export class LearningObject {
@PrimaryKey({ type: 'string' })
@ -87,21 +105,3 @@ export class LearningObject {
@Property({ type: 'blob' })
content!: Buffer;
}
@Embeddable()
export class EducationalGoal {
@Property({ type: 'string' })
source!: string;
@Property({ type: 'string' })
id!: string;
}
@Embeddable()
export class ReturnValue {
@Property({ type: 'string' })
callbackUrl!: string;
@Property({ type: 'json' })
callbackSchema!: string;
}