mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
- Introduced PushNotificationLog model to track push notifications sent to users. - Added permissions for reading push logs in the Permission enum. - Updated various side menus to include links to Push Logs in Alerts, Incidents, and Settings. - Created routes for viewing Push Logs in Alerts, Incidents, and Status Pages. - Implemented UI components for displaying Push Logs in respective pages. - Added filtering and column configuration for Push Logs tables. - Integrated PushStatus enum to manage the status of push notifications. - Implemented PushNotificationLogService for database interactions related to push logs.
15 lines
403 B
TypeScript
15 lines
403 B
TypeScript
import { IsBillingEnabled } from "../EnvironmentConfig";
|
|
import DatabaseService from "./DatabaseService";
|
|
import Model from "../../Models/DatabaseModels/PushNotificationLog";
|
|
|
|
export class Service extends DatabaseService<Model> {
|
|
public constructor() {
|
|
super(Model);
|
|
if (IsBillingEnabled) {
|
|
this.hardDeleteItemsOlderThanInDays("createdAt", 3);
|
|
}
|
|
}
|
|
}
|
|
|
|
export default new Service();
|