remove unused logger

This commit is contained in:
Johann150 2022-07-12 14:44:19 +02:00
parent ba0236700d
commit 568f14070d
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -1,11 +1,8 @@
import Bull from 'bull';
import { Notes, PollVotes } from '@/models/index.js';
import { queueLogger } from '../logger.js';
import { EndedPollNotificationJobData } from '@/queue/types.js';
import { createNotification } from '@/services/create-notification.js';
const logger = queueLogger.createSubLogger('ended-poll-notification');
export async function endedPollNotification(job: Bull.Job<EndedPollNotificationJobData>, done: any): Promise<void> {
const note = await Notes.findOneBy({ id: job.data.noteId });
if (note == null || !note.hasPoll) {