Fixed Reddit Negative Karma Issue (#6992)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user