Implement per user drive stats

This commit is contained in:
syuilo
2018-10-22 04:44:10 +09:00
parent 0085e1f3ab
commit 99aa588ae7
3 changed files with 104 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ import { isLocalUser, IUser, IRemoteUser } from '../../models/user';
import delFile from './delete-file';
import config from '../../config';
import { getDriveFileThumbnailBucket } from '../../models/drive-file-thumbnail';
import { driveStats } from '../stats';
import { driveStats, perUserDriveStats } from '../stats';
const log = debug('misskey:drive:add-file');
@@ -394,6 +394,7 @@ export default async function(
// 統計を更新
driveStats.update(driveFile, true);
perUserDriveStats.update(driveFile, true);
return driveFile;
}