From 107a7f9e777c1790b99e6b86ef928cb3f5edbf36 Mon Sep 17 00:00:00 2001 From: ekzyis <27162016+ekzyis@users.noreply.github.com> Date: Mon, 28 Aug 2023 14:08:29 +0200 Subject: [PATCH] Fix expireSecs ignored for anons (#447) Co-authored-by: ekzyis --- api/resolvers/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/resolvers/wallet.js b/api/resolvers/wallet.js index 8f913204..a48095d0 100644 --- a/api/resolvers/wallet.js +++ b/api/resolvers/wallet.js @@ -231,7 +231,7 @@ export default { let balanceLimit = BALANCE_LIMIT_MSATS let id = me?.id if (!me) { - expirePivot = { minutes: 3 } + expirePivot = { seconds: Math.min(expireSecs, 180) } invLimit = ANON_INV_PENDING_LIMIT balanceLimit = ANON_BALANCE_LIMIT_MSATS id = ANON_USER_ID