From 92acb09609b5dbb2f4c1feafdb47f168b5f97fdc Mon Sep 17 00:00:00 2001 From: romantarkin Date: Mon, 18 Aug 2025 11:08:42 +0500 Subject: [PATCH] fix json --- mail-service/src/controllers/subscriberController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail-service/src/controllers/subscriberController.js b/mail-service/src/controllers/subscriberController.js index af5bdee..5e5f1ad 100644 --- a/mail-service/src/controllers/subscriberController.js +++ b/mail-service/src/controllers/subscriberController.js @@ -23,7 +23,7 @@ export default { } else { // Если подписчика нет, создаем нового subscriber = await Subscriber.create(req.body); - res.status(201).json({ message: 'Subscriber created', subscriber }); + res.status(201).json(subscriber); } } catch (err) { res.status(400).json({ error: err.message });