mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 08:43:10 +02:00
[Server] Fix bug
This commit is contained in:
parent
9c551086dc
commit
3ae707e16c
1 changed files with 4 additions and 2 deletions
|
@ -70,8 +70,10 @@ export default (
|
||||||
// Fetch all files to calculate drive usage
|
// Fetch all files to calculate drive usage
|
||||||
const files = await DriveFile
|
const files = await DriveFile
|
||||||
.find({ user_id: user._id }, {
|
.find({ user_id: user._id }, {
|
||||||
datasize: true,
|
fields: {
|
||||||
_id: false
|
datasize: true,
|
||||||
|
_id: false
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Calculate drive usage (in byte)
|
// Calculate drive usage (in byte)
|
||||||
|
|
Loading…
Reference in a new issue