From 6c0571d5029271400a822c4a0720d73a96a04dbc Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 30 Jan 2024 18:48:02 -0600 Subject: [PATCH] logging --- packages/pds/src/signup-queue/activator.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/pds/src/signup-queue/activator.ts b/packages/pds/src/signup-queue/activator.ts index 99cd05c1e4e..71842243725 100644 --- a/packages/pds/src/signup-queue/activator.ts +++ b/packages/pds/src/signup-queue/activator.ts @@ -79,8 +79,10 @@ export class SignupActivator { async activateBatch() { const status = await getQueueStatus(this.db) - if (status.disableSignups) return const toAdmit = status.periodAllowance - status.accountsInPeriod + log.info({ ...status, toAdmit }, 'activating accounts') + + if (status.disableSignups) return if (toAdmit < 1) return const activatedAt = new Date().toISOString()