Add feature to automatically delete old sales data for legal compliance

Implements a data purge system, scheduler, and API endpoints for stats and manual execution.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/c3a86207-4ee0-47f9-8062-2dbbae696290.jpg
This commit is contained in:
michaelschal committed 2025-07-09 20:04:18 +00:00
1 parent 686512516d
commit 7404dc6443
5 files changed
+316 -1

No files matched your search

+4
View File
@@ -2,6 +2,7 @@ import express, { type Request, Response, NextFunction } from "express";
import { registerRoutes } from "./routes";
import { setupVite, serveStatic, log } from "./vite";
import { startBackupScheduler } from "./backup-scheduler";
import { startPurgeScheduler } from "./data-purge";
const app = express();
app.use(express.json());
@@ -70,5 +71,8 @@ app.use((req, res, next) => {
// Start the automatic backup scheduler
startBackupScheduler();
// Start the data purge scheduler
startPurgeScheduler();
});
})();