[Vuejs]-Cant Load Data which belongs to an Id in my Datatable

0👍

Change to req.query works

async index (req, res) {
try {
  const { adminId } = req.query
  const userData = await User.findAll({
    where: { AdminId: adminId },
    include: [UserStatus,
      { model: SurveyResult, include: [Survey] }]

  })
    .map(user => user.toJSON())

  res.send(userData)
} catch (err) {
  console.log(err)
}

Leave a comment