0
Follow
0
View

can not get userID in sequelize?

daipeiai 注册会员
2023-01-26 00:40

You forgot to wrap your condition into where option:

const kyc = await Kyc.findOne({
    where: {
      userID: req.user.id,
    }
  });

About the Author

Question Info

Publish Time
2023-01-26 00:40
Update Time
2023-01-26 00:40