fix: fixed merge errors
This commit is contained in:
		
							parent
							
								
									effaeb0277
								
							
						
					
					
						commit
						7e250e2649
					
				
					 4 changed files with 3 additions and 25 deletions
				
			
		|  | @ -17,7 +17,6 @@ export class SubmissionRepository extends DwengoEntityRepository<Submission> { | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| <<<<<<< HEAD |  | ||||||
|     public findByLearningObject(loId: LearningObjectIdentifier): Promise<Submission[]> { |     public findByLearningObject(loId: LearningObjectIdentifier): Promise<Submission[]> { | ||||||
|         return this.find({ |         return this.find({ | ||||||
|             learningObjectHruid: loId.hruid, |             learningObjectHruid: loId.hruid, | ||||||
|  | @ -27,9 +26,6 @@ export class SubmissionRepository extends DwengoEntityRepository<Submission> { | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public findMostRecentSubmissionForStudent(loId: LearningObjectIdentifier, submitter: Student): Promise<Submission | null> { |     public findMostRecentSubmissionForStudent(loId: LearningObjectIdentifier, submitter: Student): Promise<Submission | null> { | ||||||
| ======= |  | ||||||
|     public async findMostRecentSubmissionForStudent(loId: LearningObjectIdentifier, submitter: Student): Promise<Submission | null> { |  | ||||||
| >>>>>>> 6c3dbc99bb1afb79fa867505e52656c49bada1b6 |  | ||||||
|         return this.findOne( |         return this.findOne( | ||||||
|             { |             { | ||||||
|                 learningObjectHruid: loId.hruid, |                 learningObjectHruid: loId.hruid, | ||||||
|  |  | ||||||
|  | @ -56,18 +56,18 @@ export class QuestionRepository extends DwengoEntityRepository<Question> { | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| <<<<<<< HEAD |  | ||||||
|     public findAllByAssignment(assignment: Assignment): Promise<Question[]> { |     public findAllByAssignment(assignment: Assignment): Promise<Question[]> { | ||||||
|         return this.find({ |         return this.find({ | ||||||
|             author: assignment.groups.flatMap(group => group.members), |             author: assignment.groups.flatMap(group => group.members), | ||||||
|             learningObjectHruid: assignment.learningPathHruid, |             learningObjectHruid: assignment.learningPathHruid, | ||||||
|             learningObjectLanguage: assignment.learningPathLanguage, |             learningObjectLanguage: assignment.learningPathLanguage, | ||||||
| ======= |         }); | ||||||
|  |     } | ||||||
|  |      | ||||||
|     public async findAllByAuthor(author: Student): Promise<Question[]> { |     public async findAllByAuthor(author: Student): Promise<Question[]> { | ||||||
|         return this.findAll({ |         return this.findAll({ | ||||||
|             where: { author }, |             where: { author }, | ||||||
|             orderBy: { timestamp: 'DESC' }, // New to old
 |             orderBy: { timestamp: 'DESC' }, // New to old
 | ||||||
| >>>>>>> 6c3dbc99bb1afb79fa867505e52656c49bada1b6 |  | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -12,15 +12,5 @@ router.post('/', createGroupHandler); | ||||||
| router.get('/:groupid', getGroupHandler); | router.get('/:groupid', getGroupHandler); | ||||||
| 
 | 
 | ||||||
| router.get('/:groupid/submissions', getGroupSubmissionsHandler); | router.get('/:groupid/submissions', getGroupSubmissionsHandler); | ||||||
| <<<<<<< HEAD |  | ||||||
| ======= |  | ||||||
| 
 |  | ||||||
| // The list of questions a group has made
 |  | ||||||
| router.get('/:id/questions', (_req, res) => { |  | ||||||
|     res.json({ |  | ||||||
|         questions: ['0'], |  | ||||||
|     }); |  | ||||||
| }); |  | ||||||
| >>>>>>> 6c3dbc99bb1afb79fa867505e52656c49bada1b6 |  | ||||||
| 
 | 
 | ||||||
| export default router; | export default router; | ||||||
|  |  | ||||||
|  | @ -3,15 +3,7 @@ import { createSubmissionHandler, deleteSubmissionHandler, getAllSubmissionsHand | ||||||
| const router = express.Router({ mergeParams: true }); | const router = express.Router({ mergeParams: true }); | ||||||
| 
 | 
 | ||||||
| // Root endpoint used to search objects
 | // Root endpoint used to search objects
 | ||||||
| <<<<<<< HEAD |  | ||||||
| router.get('/', getAllSubmissionsHandler); | router.get('/', getAllSubmissionsHandler); | ||||||
| ======= |  | ||||||
| router.get('/', (_req, res) => { |  | ||||||
|     res.json({ |  | ||||||
|         submissions: ['0', '1'], |  | ||||||
|     }); |  | ||||||
| }); |  | ||||||
| >>>>>>> 6c3dbc99bb1afb79fa867505e52656c49bada1b6 |  | ||||||
| 
 | 
 | ||||||
| router.post('/:id', createSubmissionHandler); | router.post('/:id', createSubmissionHandler); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Adriaan Jacquet
						Adriaan Jacquet