import { exists } from '@server/helpers/custom-validators/misc'
+import { forceNumber } from '@shared/core-utils'
import { AbuseFilter, AbuseState, AbuseVideoIs } from '@shared/models'
import { buildBlockedAccountSQL, buildDirectionAndField } from '../utils'
searchReporter?: string
searchReportee?: string
- // video releated
+ // video related
searchVideo?: string
searchVideoChannel?: string
videoIs?: AbuseVideoIs
}
if (exists(options.count)) {
- const count = parseInt(options.count + '', 10)
+ const count = forceNumber(options.count)
suffix += `LIMIT ${count} `
}
if (exists(options.start)) {
- const start = parseInt(options.start + '', 10)
+ const start = forceNumber(options.start)
suffix += `OFFSET ${start} `
}
}