fix: ensure we dont bloat notification table with any other notification than app

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-09-03 21:39:21 +02:00
parent e5cacb73df
commit 52b86682e2
5 changed files with 33 additions and 31 deletions

View File

@@ -1,6 +1,6 @@
import { Queue, QueueEvents } from 'bullmq';
import type { IServiceEvent, Notification } from '@openpanel/db';
import type { IServiceEvent, Notification, Prisma } from '@openpanel/db';
import { getRedisQueue } from '@openpanel/redis';
import type { TrackPayload } from '@openpanel/sdk';
@@ -130,7 +130,7 @@ export const miscQueue = new Queue<MiscQueuePayload>('misc', {
export type NotificationQueuePayload = {
type: 'sendNotification';
payload: {
notification: Notification;
notification: Prisma.NotificationUncheckedCreateInput;
};
};