This commit is contained in:
parent
049085fb7a
commit
297a7f541e
9 changed files with 17 additions and 13 deletions
|
@ -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
|
||||
});
|
||||
});
|
||||
|
|
|
@ -72,7 +72,6 @@ export default async (ctx: Koa.Context) => {
|
|||
followingCount: 0,
|
||||
name: null,
|
||||
notesCount: 0,
|
||||
driveCapacity: 1024 * 1024 * 128, // 128MiB
|
||||
username: username,
|
||||
usernameLower: username.toLowerCase(),
|
||||
host: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue