Implement per user drive stats
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user