Skip to content

Commit

Permalink
convert mtime ms to s, parse size to int
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey18106 committed Aug 17, 2023
1 parent d6a3b18 commit c43aa8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/ExFilesActionsMenuService.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ public function handleFileAction(string $userId, string $appId, string $fileActi
'etag' => $actionFile['etag'],
'mime' => $actionFile['mime'],
'fileType' => $actionFile['fileType'],
'mtime' => $actionFile['mtime'],
'size' => $actionFile['size'],
'mtime' => $actionFile['mtime'] / 1000, // convert ms to s
'size' => intval($actionFile['size']),
'favorite' => $actionFile['favorite'] ?? "false",
'permissions' => $actionFile['permissions'],
'shareOwner' => $actionFile['shareOwner'] ?? null,
Expand Down

0 comments on commit c43aa8a

Please sign in to comment.