Store Bot configuration

This commit is contained in:
John Livingston
2023-09-18 12:23:35 +02:00
parent 35c9494ed7
commit a8c71fbadf
6 changed files with 192 additions and 67 deletions

View File

@ -1,5 +1,5 @@
import type { RegisterServerOptions } from '@peertube/peertube-types'
import type { ChannelConfigurationOptions, ChannelInfos } from '../../../../shared/lib/types'
import type { ChannelConfigurationOptions } from '../../../../shared/lib/types'
/**
* Sanitize data so that they can safely be used/stored for channel configuration configuration.
@ -11,7 +11,7 @@ import type { ChannelConfigurationOptions, ChannelInfos } from '../../../../shar
*/
async function sanitizeChannelConfigurationOptions (
_options: RegisterServerOptions,
_channelInfos: ChannelInfos,
_channelId: number | string,
data: any
): Promise<ChannelConfigurationOptions> {
const result = {