feat: initial user list (no edit/delete yet) and job schedules

This commit is contained in:
sct
2020-11-05 10:45:51 +00:00
parent 320432657e
commit 24a0423f3b
10 changed files with 213 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ const router = Router();
router.get('/', async (req, res) => {
const userRepository = getRepository(User);
const users = await userRepository.find();
const users = await userRepository.find({ relations: ['requests'] });
return res.status(200).json(User.filterMany(users));
});