forked from FoundKeyGang/FoundKey
remove unused logger
This commit is contained in:
parent
ba0236700d
commit
568f14070d
1 changed files with 0 additions and 3 deletions
|
@ -1,11 +1,8 @@
|
||||||
import Bull from 'bull';
|
import Bull from 'bull';
|
||||||
import { Notes, PollVotes } from '@/models/index.js';
|
import { Notes, PollVotes } from '@/models/index.js';
|
||||||
import { queueLogger } from '../logger.js';
|
|
||||||
import { EndedPollNotificationJobData } from '@/queue/types.js';
|
import { EndedPollNotificationJobData } from '@/queue/types.js';
|
||||||
import { createNotification } from '@/services/create-notification.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> {
|
export async function endedPollNotification(job: Bull.Job<EndedPollNotificationJobData>, done: any): Promise<void> {
|
||||||
const note = await Notes.findOneBy({ id: job.data.noteId });
|
const note = await Notes.findOneBy({ id: job.data.noteId });
|
||||||
if (note == null || !note.hasPoll) {
|
if (note == null || !note.hasPoll) {
|
||||||
|
|
Loading…
Reference in a new issue