diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-07-21 19:17:15 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-07-21 19:17:15 +0900 |
| commit | 297a7f541e497211cf3d34965417c6c137540b63 (patch) | |
| tree | 11a84608c7a3dc587f96dde5c641206180bdc940 /src/server/api/endpoints | |
| parent | Merge pull request #1945 from syuilo/greenkeeper/@types/mongodb-3.1.2 (diff) | |
| download | sharkey-297a7f541e497211cf3d34965417c6c137540b63.tar.gz sharkey-297a7f541e497211cf3d34965417c6c137540b63.tar.bz2 sharkey-297a7f541e497211cf3d34965417c6c137540b63.zip | |
#1947
Diffstat (limited to 'src/server/api/endpoints')
| -rw-r--r-- | src/server/api/endpoints/drive.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/api/endpoints/drive.ts b/src/server/api/endpoints/drive.ts index a98a3a5b87..8ad961494f 100644 --- a/src/server/api/endpoints/drive.ts +++ b/src/server/api/endpoints/drive.ts @@ -1,5 +1,6 @@ import DriveFile from '../../../models/drive-file'; import { ILocalUser } from '../../../models/user'; +import config from '../../../config'; export const meta = { desc: { @@ -38,7 +39,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) = }); res({ - capacity: user.driveCapacity, + capacity: 1024 * 1024 * config.localDriveCapacityMb, usage: usage }); }); |