adapted changelog
This commit is contained in:
@ -28,7 +28,7 @@ export default class RootValidate { // validate input for root methods
|
||||
|
||||
static changelogParams (data) {
|
||||
return Joi.object({
|
||||
timestamp: this.changelog.timestamp.required(),
|
||||
id: IdValidate.get(),
|
||||
page: this.changelog.page,
|
||||
pagesize: this.changelog.pagesize
|
||||
}).validate(data);
|
||||
@ -39,6 +39,7 @@ export default class RootValidate { // validate input for root methods
|
||||
data.collection = data.collection_name;
|
||||
data = IdValidate.stringify(data);
|
||||
const {value, error} = Joi.object({
|
||||
_id: IdValidate.get(),
|
||||
date: this.changelog.timestamp,
|
||||
action: this.changelog.action,
|
||||
collection: this.changelog.collection,
|
||||
|
Reference in New Issue
Block a user