Commit ad91373e by Pierre Allix

Merge branch 'fix-deployment' into 'master'

Throw exception if entityType is not defined for agent points

See merge request !20
parents 906ca9f1 8f2d0398
Pipeline #2323 failed with stages
in 7 minutes 48 seconds
......@@ -969,6 +969,9 @@ const get = ( graph ) => {
// TODO use the options.keys option to do a batch query (requires connection grouping).
const eav = await db.get(id);
let [entityType, entity] = eav.entity.split('/');
if(entityType === undefined) {
throw `Invalid entityType ${entityType}`;
}
let res = {entity: {id: `https://openintegrity.org/${entityType}/${entity}`
},
value: eav.value,
......
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 sign in to comment