Commit 605ba034 authored by Jure's avatar Jure

Remove title from constructor and core validations.

parent e689d5d0
Pipeline #2936 passed with stage
in 4 minutes 35 seconds
......@@ -6,6 +6,7 @@ module.exports = {
fragmentType: Joi.valid('blogpost').required(),
source: Joi.string(),
kind: Joi.string(),
title: Joi.string(),
presentation: Joi.string(),
published: Joi.boolean(),
filtered: Joi.string()
......
......@@ -6,7 +6,6 @@ class Fragment extends Model {
constructor (properties) {
super(properties)
this.type = 'fragment'
this.title = properties.title
}
async delete () {
......
......@@ -13,7 +13,6 @@ let validations = {
id: Joi.string().guid().required(),
type: Joi.string().required(),
fragmentType: Joi.string().required(),
title: Joi.string(),
rev: Joi.string(),
fragments: Joi.array().items(Joi.string().guid()),
owners: Joi.array().items(Joi.string().guid())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment