mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Use record for representation preference.
This commit is contained in:
@@ -86,7 +86,8 @@ export class SparqlUpdatePatchHandler extends PatchHandler {
|
||||
const store = new Store<BaseQuad>();
|
||||
try {
|
||||
// Read the quads of the current representation
|
||||
const quads = await this.source.getRepresentation(identifier, { type: [{ value: INTERNAL_QUADS, weight: 1 }]});
|
||||
const quads = await this.source.getRepresentation(identifier,
|
||||
{ type: { [INTERNAL_QUADS]: 1 }});
|
||||
const importEmitter = store.import(quads.data);
|
||||
await new Promise((resolve, reject): void => {
|
||||
importEmitter.on('end', resolve);
|
||||
|
||||
Reference in New Issue
Block a user