From 4b2e1eeca11831ef8c048e5c74b73f500667fac2 Mon Sep 17 00:00:00 2001 From: Leonardo Matos Date: Tue, 16 Jul 2024 11:21:43 -0300 Subject: [PATCH] fix: list stores from auths up to 48h --- functions/lib/ux-group/send-waiting-orders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/lib/ux-group/send-waiting-orders.js b/functions/lib/ux-group/send-waiting-orders.js index b6846a3..14b6323 100644 --- a/functions/lib/ux-group/send-waiting-orders.js +++ b/functions/lib/ux-group/send-waiting-orders.js @@ -7,7 +7,7 @@ const exportOrder = require('./export-order') const listStoreIds = () => { const storeIds = [] const date = new Date() - date.setHours(date.getHours() - 24) + date.setHours(date.getHours() - 48) return firestore() .collection('ecomplus_app_auth') .where('updated_at', '>', firestore.Timestamp.fromDate(date))