X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fuser-notifications.ts;h=4a7577d32ec6ad5bd25a103b22b3112be26fa779;hb=84cae54e7a2595bea0c3ea106a4d111fd11a4ec6;hp=21a7be08de68e39ad1ac5d7a75e10ebf8c5d420b;hpb=ec903c010ecc54ec2acad0bf2cf10e7fbf6a0fa2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/validators/user-notifications.ts b/server/middlewares/validators/user-notifications.ts index 21a7be08d..4a7577d32 100644 --- a/server/middlewares/validators/user-notifications.ts +++ b/server/middlewares/validators/user-notifications.ts @@ -1,9 +1,9 @@ -import * as express from 'express' +import express from 'express' import { body, query } from 'express-validator' -import { logger } from '../../helpers/logger' -import { areValidationErrors } from './utils' -import { isUserNotificationSettingValid } from '../../helpers/custom-validators/user-notifications' import { isNotEmptyIntArray, toBooleanOrNull } from '../../helpers/custom-validators/misc' +import { isUserNotificationSettingValid } from '../../helpers/custom-validators/user-notifications' +import { logger } from '../../helpers/logger' +import { areValidationErrors } from './shared' const listUserNotificationsValidator = [ query('unread')