Fixed Reddit Negative Karma Issue (#6992)

This commit is contained in:
Rohit Sah
2021-09-08 00:34:02 +05:45
committed by GitHub
parent 1b871a97b4
commit 8a1c69ead6

View File

@@ -1,12 +1,12 @@
import Joi from 'joi'
import { nonNegativeInteger } from '../validators.js'
import { anyInteger } from '../validators.js'
import { metric } from '../text-formatters.js'
import { BaseJsonService } from '../index.js'
const schema = Joi.object({
data: Joi.object({
link_karma: nonNegativeInteger,
comment_karma: nonNegativeInteger,
link_karma: anyInteger,
comment_karma: anyInteger,
}).required(),
}).required()