mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-26 01:09:02 -05:00
* Initial * Progress * Fix * Progress * Notifications list page * BADGE_MANAGER_ADDED * Mark as seen initial * Split tables * Progress * Fix styles * Push notifs initial * Progress * Rename * Routines * Progress * Add e2e tests * Done? * Try updating actions * Consistency * Dep fix * A couple fixes
12 lines
440 B
TypeScript
12 lines
440 B
TypeScript
import * as NotificationRepository from "../features/notifications/NotificationRepository.server";
|
|
import { logger } from "../utils/logger";
|
|
import { Routine } from "./routine.server";
|
|
|
|
export const DeleteOldNotificationsRoutine = new Routine({
|
|
name: "DeleteOldNotifications",
|
|
func: async () => {
|
|
const { numDeletedRows } = await NotificationRepository.deleteOld();
|
|
logger.info(`Deleted ${numDeletedRows} old notifications`);
|
|
},
|
|
});
|