mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Make Patch more consistent with other Representations
This commit is contained in:
@@ -28,7 +28,7 @@ export class SimpleSparqlUpdatePatchHandler extends PatchHandler {
|
||||
}
|
||||
|
||||
public async canHandle(input: {identifier: ResourceIdentifier; patch: SparqlUpdatePatch}): Promise<void> {
|
||||
if (input.patch.dataType !== 'sparql-algebra' || !input.patch.algebra) {
|
||||
if (typeof input.patch.algebra !== 'object') {
|
||||
throw new UnsupportedHttpError('Only SPARQL update patch requests are supported.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user