Moved the parsing logic to backend as suggested.

This commit is contained in:
Owaise Imdad committed 2025-04-29 12:47:24 +05:30
1 parent b2fd9b1e89
commit bd8554707d
10 files changed
+165 -103

No files matched your search

+1 -1
View File
@@ -751,7 +751,7 @@ const createMonitor = async (req, res) => {
*/
const createBulkMonitors = async (req) => {
try {
const monitors = req.body.map(
const monitors = req.map(
(item) => new Monitor({ ...item, notifications: undefined })
);
await Monitor.bulkSave(monitors);