mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 08:42:13 +02:00
14 lines
395 B
TypeScript
14 lines
395 B
TypeScript
import { IsBillingEnabled } from "../EnvironmentConfig";
|
|
import DatabaseService from "./DatabaseService";
|
|
import Model from "../../Models/DatabaseModels/WorkflowLog";
|
|
|
|
export class Service extends DatabaseService<Model> {
|
|
public constructor() {
|
|
super(Model);
|
|
if (IsBillingEnabled) {
|
|
this.hardDeleteItemsOlderThanInDays("createdAt", 30);
|
|
}
|
|
}
|
|
}
|
|
export default new Service();
|