refactor(backend): Functions
This commit is contained in:
		
							parent
							
								
									5ec62554e3
								
							
						
					
					
						commit
						65c1a5e6b6
					
				
					 57 changed files with 172 additions and 117 deletions
				
			
		|  | @ -3,7 +3,12 @@ import { LearningPathTransition } from '../../../src/entities/content/learning-p | |||
| import { LearningPathNode } from '../../../src/entities/content/learning-path-node.entity'; | ||||
| import { LearningPath } from '../../../src/entities/content/learning-path.entity'; | ||||
| 
 | ||||
| export function createLearningPathTransition(node: LearningPathNode, transitionNumber: number, condition: string | null, to: LearningPathNode) { | ||||
| export function createLearningPathTransition( | ||||
|     node: LearningPathNode, | ||||
|     transitionNumber: number, | ||||
|     condition: string | null, | ||||
|     to: LearningPathNode | ||||
| ): LearningPathTransition { | ||||
|     const trans = new LearningPathTransition(); | ||||
|     trans.node = node; | ||||
|     trans.transitionNumber = transitionNumber; | ||||
|  | @ -19,7 +24,7 @@ export function createLearningPathNode( | |||
|     version: number, | ||||
|     language: Language, | ||||
|     startNode: boolean | ||||
| ) { | ||||
| ): LearningPathNode { | ||||
|     const node = new LearningPathNode(); | ||||
|     node.learningPath = learningPath; | ||||
|     node.nodeNumber = nodeNumber; | ||||
|  |  | |||
		Reference in a new issue