Init commit
This commit is contained in:
12
server/core/helpers/custom-validators/video-redundancies.ts
Normal file
12
server/core/helpers/custom-validators/video-redundancies.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { exists } from './misc.js'
|
||||
|
||||
function isVideoRedundancyTarget (value: any) {
|
||||
return exists(value) &&
|
||||
(value === 'my-videos' || value === 'remote-videos')
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
isVideoRedundancyTarget
|
||||
}
|
||||
Reference in New Issue
Block a user