Update team and collection authorization
This commit is contained in:
@ -9,7 +9,7 @@ const router = new Router();
|
||||
|
||||
router.post('auth.info', auth(), async ctx => {
|
||||
const user = ctx.state.user;
|
||||
const team = await Team.findOne({ where: { id: user.teamId } });
|
||||
const team = await Team.findById(user.teamId);
|
||||
|
||||
ctx.body = {
|
||||
data: {
|
||||
|
Reference in New Issue
Block a user