diff options
author | Chocobozzz <me@florianbigard.com> | 2023-01-19 15:27:04 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-01-19 15:27:04 +0100 |
commit | 9436936cf68b6c1225298b0e30c23c40f0d15bda (patch) | |
tree | 16aa786d941b10b29b03c84f3c69a9fd1e597dd5 /shared/server-commands | |
parent | 4e4c23c5b8d55ab0aa48a7be8c53ec71d1d7e796 (diff) | |
download | PeerTube-9436936cf68b6c1225298b0e30c23c40f0d15bda.tar.gz PeerTube-9436936cf68b6c1225298b0e30c23c40f0d15bda.tar.zst PeerTube-9436936cf68b6c1225298b0e30c23c40f0d15bda.zip |
Add more signup limit tests
Diffstat (limited to 'shared/server-commands')
-rw-r--r-- | shared/server-commands/server/config-command.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
31 | 31 | ||
32 | // --------------------------------------------------------------------------- | 32 | // --------------------------------------------------------------------------- |
33 | 33 | ||
34 | enableSignup (requiresApproval: boolean) { | 34 | enableSignup (requiresApproval: boolean, limit = -1) { |
35 | return this.updateExistingSubConfig({ | 35 | return this.updateExistingSubConfig({ |
36 | newConfig: { | 36 | newConfig: { |
37 | signup: { | 37 | signup: { |
38 | enabled: true, | 38 | enabled: true, |
39 | requiresApproval, | 39 | requiresApproval, |
40 | limit: -1 | 40 | limit |
41 | } | 41 | } |
42 | } | 42 | } |
43 | }) | 43 | }) |