S
Size: a a a
S
j
[{
N
j
ДЗ
ДЗ
КК
[{
AP
A
module.exports.getUserId = (req, res) => {
User.findById(req.user._id)
.then((item) => res.status(200).send({ data: item }))
.catch((err) => {
if (err.name === 'ValidationError') {
res.status(400).send({
message: 'Некорректные данные',
});
}
res.status(500).send({ message: 'Произошла ошибка 500' });
});
};
VH
A
s
A
s
AP
VH
КК