Skip to content

Commit

Permalink
fix(files): handling numbered type owner name & id
Browse files Browse the repository at this point in the history
Signed-off-by: Sanskar Soni <sanskarsoni300@gmail.com>
  • Loading branch information
sanskar-soni-9 authored and AndyScherzinger committed Jun 12, 2024
1 parent 095774b commit d78d468
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
6 changes: 4 additions & 2 deletions apps/files/src/services/Files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const resultToNode = function(node: FileStat): File | Folder {

const props = node.props as ResponseProps
const permissions = davParsePermissions(props?.permissions)
const owner = (props['owner-id'] || userId).toString()
const owner = String(props['owner-id'] || userId)

const source = generateRemoteUrl('dav' + rootPath + node.filename)
const id = props?.fileid < 0
Expand All @@ -66,7 +66,9 @@ export const resultToNode = function(node: FileStat): File | Folder {
attributes: {
...node,
...props,
hasPreview: props?.['has-preview'],
'owner-id': owner,
'owner-display-name': String(props['owner-display-name']),
hasPreview: !!props?.['has-preview'],
failed: props?.fileid < 0,
},
}
Expand Down
4 changes: 2 additions & 2 deletions dist/files-init.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-init.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/systemtags-init.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/systemtags-init.js.map

Large diffs are not rendered by default.

0 comments on commit d78d468

Please sign in to comment.