mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-16 20:59:26 +00:00
refactor imports/exports
This commit is contained in:
@@ -9,7 +9,6 @@ import {
|
|||||||
@ValidatorConstraint({ async: false })
|
@ValidatorConstraint({ async: false })
|
||||||
export class IsOrderByConstraint implements ValidatorConstraintInterface {
|
export class IsOrderByConstraint implements ValidatorConstraintInterface {
|
||||||
validate(orderBy: string | null, args: ValidationArguments) {
|
validate(orderBy: string | null, args: ValidationArguments) {
|
||||||
console.log(orderBy)
|
|
||||||
if (!orderBy || orderBy === 'null' || orderBy === '') {
|
if (!orderBy || orderBy === 'null' || orderBy === '') {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user