Skip to content

Commit

Permalink
adjust some types casting
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
  • Loading branch information
andrey18106 committed Dec 4, 2023
1 parent bde7b6d commit 16313b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/filesplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ if (OCA.Files && OCA.Files.fileActions) {
favorite: file.dataset.favorite || 'false',
permissions: Number(file.dataset.permissions),
fileType: file.dataset.type,
size: file.dataset.size,
mtime: file.dataset.mtime,
size: Number(file.dataset.size),
mtime: Number(file.dataset.mtime) / 1000, // convert ms to s
shareTypes: file.dataset?.shareTypes,
shareAttributes: file.dataset?.shareAttributes,
sharePermissions: file.dataset?.sharePermissions,
Expand Down Expand Up @@ -100,8 +100,8 @@ if (OCA.Files && OCA.Files.fileActions) {
favorite: Boolean(node.attributes.favorite).toString(),
permissions: node.permissions,
fileType: node.type,
size: node.size,
mtime: new Date(node.mtime).getTime(),
size: Number(node.size),
mtime: new Date(node.mtime).getTime() / 1000, // convert ms to s
shareTypes: node.attributes.shareTypes,
shareAttributes: node.attributes.shareAttributes,
sharePermissions: node.attributes.sharePermissions,
Expand Down

0 comments on commit 16313b1

Please sign in to comment.