Compare commits
No commits in common. "827d42f3a619dcdb3fe702027eb3b0c7c5ac9f86" and "b172e10ccd46bf4298ee93bcb4bd13de28c845bb" have entirely different histories.
827d42f3a6
...
b172e10ccd
|
@ -8,10 +8,6 @@ export class EventsController {
|
|||
private static clients: { id: string; res: Response }[] = []
|
||||
|
||||
static async eventsHandler(req: Request, res: Response) {
|
||||
/*
|
||||
If the server is behind a nginx reverse proxy, use the following configuration:
|
||||
proxy_read_timeout 24h;
|
||||
*/
|
||||
const headers = {
|
||||
'Content-Type': 'text/event-stream',
|
||||
Connection: 'keep-alive',
|
||||
|
|
|
@ -19,7 +19,7 @@ class PrinterStatusController {
|
|||
static async status(req: Request, res: Response) {
|
||||
const { printerId } = req.params
|
||||
|
||||
const { days = 360 } = req.query
|
||||
const { days = 180 } = req.query
|
||||
|
||||
const gte = new Date(Date.now() - 1000 * 60 * 60 * 24 * Number(days))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user