fix: ensure we dont bloat notification table with any other notification than app
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { type Redis, getRedisPub, getRedisSub } from './redis';
|
||||
|
||||
import type { IServiceEvent, Notification } from '@openpanel/db';
|
||||
import type { IServiceEvent, Notification, Prisma } from '@openpanel/db';
|
||||
import { getSuperJson, setSuperJson } from '@openpanel/json';
|
||||
|
||||
export type IPublishChannels = {
|
||||
@@ -14,7 +14,7 @@ export type IPublishChannels = {
|
||||
saved: IServiceEvent;
|
||||
};
|
||||
notification: {
|
||||
created: Notification;
|
||||
created: Prisma.NotificationUncheckedCreateInput;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user