Export channel settings

This commit is contained in:
Hri7566 2023-10-25 00:00:30 -04:00
parent 6c39c3405b
commit 7d25ea57bf
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ export function validateChannelSettings(set: Partial<ChannelSettings>) {
return record;
}
function validate(value: any, validator: Validator) {
export default validateChannelSettings;
export function validate(value: any, validator: Validator) {
// What type of validator?
if (typeof validator == "function") {
// We are copying Zod's functionality