Skip to content

Commit 20f7796

Browse files
authored
Fix errors when creating folders and root folders (#567)
Signed-off-by: sBouzols <[email protected]>
1 parent 7ccb422 commit 20f7796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/rest-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export function insertDirectory(directoryName: string, parentUuid: UUID, ownerId
281281
elementUuid: null,
282282
elementName: directoryName,
283283
type: 'DIRECTORY',
284-
ownerId,
284+
owner: ownerId,
285285
}),
286286
});
287287
}
@@ -297,7 +297,7 @@ export function insertRootDirectory(directoryName: string, ownerId: string) {
297297
},
298298
body: JSON.stringify({
299299
elementName: directoryName,
300-
ownerId,
300+
owner: ownerId,
301301
}),
302302
});
303303
}

0 commit comments

Comments
 (0)