Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
timolegros committed Jun 25, 2024
1 parent 2ae1b70 commit 438ec42
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/commonwealth/server/util/emitNotifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
import Sequelize, { QueryTypes } from 'sequelize';
import { fileURLToPath } from 'url';
import { config } from '../config';
import { createImmediateNotificationEmailObject } from '../scripts/emails';
import { mapNotificationsDataToSubscriptions } from './subscriptionMapping';
import { dispatchWebhooks } from './webhooks/dispatchWebhook';

Expand Down Expand Up @@ -140,20 +139,6 @@ export default async function emitNotifications(
}
}

let msg;
try {
if (category_id !== 'snapshot-proposal') {
msg = await createImmediateNotificationEmailObject(
notification_data,
category_id,
models,
);
}
} catch (e) {
console.log('Error generating immediate notification email!');
console.trace(e);
}

let query = `INSERT INTO "NotificationsRead" (notification_id, subscription_id, is_read, user_id) VALUES `;
const replacements = [];
for (const subscription of subscriptions) {
Expand Down

0 comments on commit 438ec42

Please sign in to comment.