From 9436936cf68b6c1225298b0e30c23c40f0d15bda Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 Jan 2023 15:27:04 +0100 Subject: Add more signup limit tests --- shared/server-commands/server/config-command.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shared') diff --git a/shared/server-commands/server/config-command.ts b/shared/server-commands/server/config-command.ts index 51267b85b..eb6bb95a5 100644 --- a/shared/server-commands/server/config-command.ts +++ b/shared/server-commands/server/config-command.ts @@ -31,13 +31,13 @@ export class ConfigCommand extends AbstractCommand { // --------------------------------------------------------------------------- - enableSignup (requiresApproval: boolean) { + enableSignup (requiresApproval: boolean, limit = -1) { return this.updateExistingSubConfig({ newConfig: { signup: { enabled: true, requiresApproval, - limit: -1 + limit } } }) -- cgit v1.2.3