This commit is contained in:
Professional 2025-05-25 23:30:52 +07:00
parent 12e271a4b8
commit bed201fafd

View File

@ -223,6 +223,7 @@ const getMe = async (req, res, next) => {
photos: req.user.photos,
location: req.user.location,
preferences: req.user.preferences,
isAdmin: req.user.isAdmin || false, // Добавляем информацию об административных правах
createdAt: req.user.createdAt,
updatedAt: req.user.updatedAt,
});