From 7a7447b6e9b60d7ede3454961a28f679ce7567bd Mon Sep 17 00:00:00 2001 From: Sefinek Date: Sun, 8 Sep 2024 21:41:25 +0200 Subject: [PATCH] Update payload --- scripts/payload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/payload.js b/scripts/payload.js index e8a2521..877cb1c 100644 --- a/scripts/payload.js +++ b/scripts/payload.js @@ -3,7 +3,7 @@ const query = `query ListFirewallEvents($zoneTag: string, $filter: FirewallEvent zones(filter: { zoneTag: $zoneTag }) { firewallEventsAdaptive( filter: $filter, - limit: 1000, + limit: 1500, orderBy: [datetime_DESC] ) { action @@ -30,7 +30,7 @@ module.exports = () => { const variables = { zoneTag: process.env.CLOUDFLARE_ZONE_ID, filter: { - datetime_geq: new Date(Date.now() - (60 * 60 * 10.5 * 1000)).toISOString(), + datetime_geq: new Date(Date.now() - (60 * 60 * 12 * 1000)).toISOString(), datetime_leq: new Date(Date.now() - (60 * 60 * 8 * 1000)).toISOString(), AND: [ { action_neq: 'allow' },