mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Allow DataAccessorBasedStore to create root
This commit is contained in:
@@ -218,7 +218,8 @@ export class DataAccessorBasedStore implements ResourceStore {
|
||||
await this.handleContainerData(representation);
|
||||
}
|
||||
|
||||
if (createContainers) {
|
||||
// Root container should not have a parent container
|
||||
if (createContainers && !this.identifierStrategy.isRootContainer(identifier)) {
|
||||
await this.createRecursiveContainers(this.identifierStrategy.getParentContainer(identifier));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user