Add back service token data select fields for GET endpoint

This commit is contained in:
Tuan Dang
2023-04-22 11:47:23 +03:00
parent 7fc01df93e
commit e0d5644b3a
4 changed files with 3 additions and 3 deletions
@@ -56,6 +56,7 @@ export const getServiceTokenData = async (req: Request, res: Response) => {
const serviceTokenData = await ServiceTokenData
.findById(req.authData.authPayload._id)
.select('+encryptedKey +iv +tag')
.populate('user');
return res.status(200).json(serviceTokenData);