forked from Hri7566/mpp-server-dev2
Export channel settings
This commit is contained in:
parent
6c39c3405b
commit
7d25ea57bf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue