fix: classes gedefiniëerd voordat ze gebruikt worden
This commit is contained in:
		
							parent
							
								
									0054146188
								
							
						
					
					
						commit
						61d03bc7f2
					
				
					 1 changed files with 18 additions and 18 deletions
				
			
		|  | @ -3,6 +3,24 @@ import { Language } from './language.js'; | ||||||
| import { Attachment } from './attachment.entity.js'; | import { Attachment } from './attachment.entity.js'; | ||||||
| import { Teacher } from '../users/teacher.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() | @Entity() | ||||||
| export class LearningObject { | export class LearningObject { | ||||||
|     @PrimaryKey({ type: 'string' }) |     @PrimaryKey({ type: 'string' }) | ||||||
|  | @ -82,24 +100,6 @@ export class LearningObject { | ||||||
|     content!: Buffer; |     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 { | export enum ContentType { | ||||||
|     Markdown = 'text/markdown', |     Markdown = 'text/markdown', | ||||||
|     Image = 'image/image', |     Image = 'image/image', | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Timo De Meyst
						Timo De Meyst