mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
require -> import
This commit is contained in:
parent
e02643f32e
commit
4d4e5cd4dc
33 changed files with 66 additions and 67 deletions
|
@ -1,7 +1,5 @@
|
|||
import { values } from 'lodash'
|
||||
import expressValidator = require('express-validator')
|
||||
// TODO: use .validator when express-validator typing will have validator field
|
||||
const validator = expressValidator['validator']
|
||||
import * as validator from 'validator'
|
||||
|
||||
import { CONSTRAINTS_FIELDS, USER_ROLES } from '../../initializers'
|
||||
const USERS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.USERS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue