From 61d03bc7f2b4c485f16dcc941e2a0bb4d7380f25 Mon Sep 17 00:00:00 2001 From: Timo De Meyst Date: Tue, 11 Mar 2025 08:25:30 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20classes=20gedefini=C3=ABerd=20voordat=20?= =?UTF-8?q?ze=20gebruikt=20worden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../content/learning-object.entity.ts | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/backend/src/entities/content/learning-object.entity.ts b/backend/src/entities/content/learning-object.entity.ts index 2b7d7684..9ff12ff0 100644 --- a/backend/src/entities/content/learning-object.entity.ts +++ b/backend/src/entities/content/learning-object.entity.ts @@ -3,6 +3,24 @@ import { Language } from './language.js'; import { Attachment } from './attachment.entity.js'; import { Teacher } from '../users/teacher.entity.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() export class LearningObject { @PrimaryKey({ type: 'string' }) @@ -82,24 +100,6 @@ export class LearningObject { 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; -} - export enum ContentType { Markdown = 'text/markdown', Image = 'image/image',