summaryrefslogtreecommitdiff
path: root/src/api/endpoints/drive.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/drive.ts')
-rw-r--r--src/api/endpoints/drive.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/drive.ts b/src/api/endpoints/drive.ts
index d92473633a..eb21853916 100644
--- a/src/api/endpoints/drive.ts
+++ b/src/api/endpoints/drive.ts
@@ -14,7 +14,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
// Calculate drive usage
const usage = ((await DriveFile
.aggregate([
- { $match: { 'metadata.user_id': user._id } },
+ { $match: { 'metadata.userId': user._id } },
{
$project: {
length: true
@@ -31,7 +31,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
}).usage;
res({
- capacity: user.drive_capacity,
+ capacity: user.driveCapacity,
usage: usage
});
});