1
0
Fork 0
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:
Chocobozzz 2023-01-19 15:27:04 +01:00
parent 4e4c23c5b8
commit 9436936cf6
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 37 additions and 6 deletions

View file

@ -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
}
}
})