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[]> {
|
||||
return this.find({
|
||||
learningObjectHruid: loId.hruid,
|
||||
|
@ -27,9 +26,6 @@ export class SubmissionRepository extends DwengoEntityRepository<Submission> {
|
|||
}
|
||||
|
||||
public findMostRecentSubmissionForStudent(loId: LearningObjectIdentifier, submitter: Student): Promise<Submission | null> {
|
||||
=======
|
||||
public async findMostRecentSubmissionForStudent(loId: LearningObjectIdentifier, submitter: Student): Promise<Submission | null> {
|
||||
>>>>>>> 6c3dbc99bb1afb79fa867505e52656c49bada1b6
|
||||
return this.findOne(
|
||||
{
|
||||
learningObjectHruid: loId.hruid,
|
||||
|
|
|
@ -56,18 +56,18 @@ export class QuestionRepository extends DwengoEntityRepository<Question> {
|
|||
});
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
public findAllByAssignment(assignment: Assignment): Promise<Question[]> {
|
||||
return this.find({
|
||||
author: assignment.groups.flatMap(group => group.members),
|
||||
learningObjectHruid: assignment.learningPathHruid,
|
||||
learningObjectLanguage: assignment.learningPathLanguage,
|
||||
=======
|
||||
});
|
||||
}
|
||||
|
||||
public async findAllByAuthor(author: Student): Promise<Question[]> {
|
||||
return this.findAll({
|
||||
where: { author },
|
||||
orderBy: { timestamp: 'DESC' }, // New to old
|
||||
>>>>>>> 6c3dbc99bb1afb79fa867505e52656c49bada1b6
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,15 +12,5 @@ router.post('/', createGroupHandler);
|
|||
router.get('/:groupid', getGroupHandler);
|
||||
|
||||
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;
|
||||
|
|
|
@ -3,15 +3,7 @@ import { createSubmissionHandler, deleteSubmissionHandler, getAllSubmissionsHand
|
|||
const router = express.Router({ mergeParams: true });
|
||||
|
||||
// Root endpoint used to search objects
|
||||
<<<<<<< HEAD
|
||||
router.get('/', getAllSubmissionsHandler);
|
||||
=======
|
||||
router.get('/', (_req, res) => {
|
||||
res.json({
|
||||
submissions: ['0', '1'],
|
||||
});
|
||||
});
|
||||
>>>>>>> 6c3dbc99bb1afb79fa867505e52656c49bada1b6
|
||||
|
||||
router.post('/:id', createSubmissionHandler);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue