Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Jan 31, 2024
1 parent 258734b commit 6c0571d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/pds/src/signup-queue/activator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6c0571d

Please sign in to comment.