Commit 89dd5e6d authored by mix irving's avatar mix irving
Browse files

fix relationship tangle to "link"

parent 59a9a3d8
......@@ -5,5 +5,5 @@ module.exports = {
isRoot: Validator(require('./schema/root')),
isUpdate: Validator(require('./schema/update')),
strategy: require('./strategy'),
tangle: 'relationship'
tangle: 'link'
}
......@@ -13,9 +13,9 @@ module.exports = {
tangles: {
type: 'object',
required: ['relationship'],
required: ['link'],
properties: {
relationship: { $ref: '#/definitions/tangle/root' }
link: { $ref: '#/definitions/tangle/root' }
}
}
},
......
......@@ -13,9 +13,9 @@ module.exports = {
tangles: {
type: 'object',
required: ['relationship'],
required: ['link'],
properties: {
relationship: { $ref: '#/definitions/tangle/update' }
link: { $ref: '#/definitions/tangle/update' }
}
}
},
......
......@@ -28,7 +28,7 @@ test('child/create (success)', t => {
recps: opts.recps,
tangles: {
relationship: { root: null, previous: null }
link: { root: null, previous: null }
}
}
......
......@@ -22,7 +22,7 @@ function mock (override = {}) {
],
tangles: {
relationship: { root: null, previous: null }
link: { root: null, previous: null }
}
}
......
......@@ -19,7 +19,7 @@ function mock (override = {}) {
],
tangles: {
relationship: {
link: {
root: '%joW3u54lQs8G4FAdatic4013xK1QvAUy+nduR3igsLo=.sha256',
previous: ['%joW3u54lQs8G4FAdatic4013xK1QvAUy+nduR3igsLo=.sha256']
}
......
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