замечания 3

This commit is contained in:
2025-11-02 12:40:42 +03:00
parent 35493a09b5
commit 0d1dcf21c1
29 changed files with 1498 additions and 1827 deletions

View File

@@ -61,7 +61,7 @@ router.post('/', verifyToken, async (req, res) => {
// Создать новый отзыв
const newReview = new Review({
companyId,
authorCompanyId: req.user.companyId,
authorCompanyId: req.companyId,
authorName: req.user.firstName + ' ' + req.user.lastName,
authorCompany: req.user.companyName || 'Company',
rating: parseInt(rating),