Implemented issue drag and drop
This commit is contained in:
@@ -3,6 +3,7 @@ import express from 'express';
|
||||
import { Project } from 'entities';
|
||||
import { catchErrors } from 'errors';
|
||||
import { findEntityOrThrow, updateEntity } from 'utils/typeorm';
|
||||
import { issuePartial } from 'serializers/issues';
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -10,9 +11,14 @@ router.get(
|
||||
'/project',
|
||||
catchErrors(async (req, res) => {
|
||||
const project = await findEntityOrThrow(Project, req.currentUser.projectId, {
|
||||
relations: ['users', 'issues', 'issues.comments'],
|
||||
relations: ['users', 'issues'],
|
||||
});
|
||||
res.respond({
|
||||
project: {
|
||||
...project,
|
||||
issues: project.issues.map(issuePartial),
|
||||
},
|
||||
});
|
||||
res.respond({ project });
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user