mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Make stores return modified resources.
This commit is contained in:
committed by
Joachim Van Herwegen
parent
28c0eb7e88
commit
6edc255707
@@ -48,7 +48,7 @@ export class RepresentationConvertingStore<T extends ResourceStore = ResourceSto
|
||||
}
|
||||
|
||||
public async setRepresentation(identifier: ResourceIdentifier, representation: Representation,
|
||||
conditions?: Conditions): Promise<void> {
|
||||
conditions?: Conditions): Promise<ResourceIdentifier[]> {
|
||||
representation = await this.inConverter.handleSafe({ identifier, representation, preferences: this.inPreferences });
|
||||
return this.source.setRepresentation(identifier, representation, conditions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user