mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Add more signup limit tests
This commit is contained in:
parent
4e4c23c5b8
commit
9436936cf6
2 changed files with 37 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue