Skip to content

Commit

Permalink
fix: missing oa:canonical
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jun 18, 2024
1 parent 3d8cbec commit 6d91c6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis/shared-dimensions/lib/handlers/shared-dimension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { serializers } from '@rdfjs-elements/formats-pretty'
import error from 'http-errors'
import { md, meta } from '@cube-creator/core/namespace'
import * as ns from '@tpluscode/rdf-ns-builders'
import { oa } from '@tpluscode/rdf-ns-builders'

Check warning on line 10 in apis/shared-dimensions/lib/handlers/shared-dimension.ts

View check run for this annotation

Codecov / codecov/patch

apis/shared-dimensions/lib/handlers/shared-dimension.ts#L10

Added line #L10 was not covered by tests
import { createTerm, getExportedDimension } from '../domain/shared-dimension'
import { store } from '../store'
import { shaclValidate } from '../middleware/shacl'
Expand All @@ -19,6 +20,8 @@ export const post = protectedResource(shaclValidate, asyncMiddleware(async (req,
store: store(),
})

term.addOut(oa.canonical, term)

Check warning on line 24 in apis/shared-dimensions/lib/handlers/shared-dimension.ts

View check run for this annotation

Codecov / codecov/patch

apis/shared-dimensions/lib/handlers/shared-dimension.ts#L23-L24

Added lines #L23 - L24 were not covered by tests
res.setHeader('Location', term.value)
res.status(201)
return res.dataset(term.dataset)
Expand Down

0 comments on commit 6d91c6c

Please sign in to comment.