a4603525aa
note: - ActiveUsersChart is kept - backend can be further refactored
7 lines
282 B
TypeScript
7 lines
282 B
TypeScript
import { beforeShutdown } from "@/misc/before-shutdown.js";
|
|
import ActiveUsersChart from "./charts/active-users.js";
|
|
|
|
export const activeUsersChart = new ActiveUsersChart();
|
|
|
|
setInterval(() => activeUsersChart.save(), 1000 * 60 * 20);
|
|
beforeShutdown(() => activeUsersChart.save());
|