Webhookの作成可能数を設定可能に
This commit is contained in:
parent
f45059b7b1
commit
bcb5182e86
6 changed files with 46 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ export type RoleOptions = {
|
|||
driveCapacityMb: number;
|
||||
antennaLimit: number;
|
||||
wordMuteLimit: number;
|
||||
webhookLimit: number;
|
||||
};
|
||||
|
||||
export const DEFAULT_ROLE: RoleOptions = {
|
||||
|
|
@ -33,6 +34,7 @@ export const DEFAULT_ROLE: RoleOptions = {
|
|||
driveCapacityMb: 100,
|
||||
antennaLimit: 5,
|
||||
wordMuteLimit: 200,
|
||||
webhookLimit: 3,
|
||||
};
|
||||
|
||||
@Injectable()
|
||||
|
|
@ -203,6 +205,7 @@ export class RoleService implements OnApplicationShutdown {
|
|||
driveCapacityMb: Math.max(...getOptionValues('driveCapacityMb')),
|
||||
antennaLimit: Math.max(...getOptionValues('antennaLimit')),
|
||||
wordMuteLimit: Math.max(...getOptionValues('wordMuteLimit')),
|
||||
webhookLimit: Math.max(...getOptionValues('webhookLimit')),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue