Merge pull request #2154 from bluewave-labs/Feature-Bulk-Upload-Of-Monitors

Feature release for bulk upload of uptime monitors
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-05-01 14:36:44 -07:00
commit 464a6398d0
15 files changed
+376 -36

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);