mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix bug with project migration
This commit is contained in:
@@ -3,7 +3,15 @@ const { find, update } = require('../util/db');
|
||||
const projectCollection = 'projects';
|
||||
|
||||
async function run() {
|
||||
const projects = await find(projectCollection, { deleted: false });
|
||||
const projects = await find(projectCollection, {
|
||||
deleted: false,
|
||||
sendCreatedIncidentNotificationSms: { $exists: false },
|
||||
sendAcknowledgedIncidentNotificationSms: { $exists: false },
|
||||
sendResolvedIncidentNotificationSms: { $exists: false },
|
||||
sendCreatedIncidentNotificationEmail: { $exists: false },
|
||||
sendAcknowledgedIncidentNotificationEmail: { $exists: false },
|
||||
sendResolvedIncidentNotificationEmail: { $exists: false },
|
||||
});
|
||||
|
||||
projects.forEach(async project => {
|
||||
const data = {
|
||||
|
||||
Reference in New Issue
Block a user