delete needless instance drive columns

This commit is contained in:
syuilo
2022-03-07 21:20:14 +09:00
parent ec64b5ea0b
commit 513c83e374
7 changed files with 13 additions and 30 deletions

View File

@ -484,8 +484,6 @@ export async function addFile({
perUserDriveChart.update(file, true);
if (file.userHost !== null) {
instanceChart.updateDrive(file, true);
Instances.increment({ host: file.userHost }, 'driveUsage', file.size);
Instances.increment({ host: file.userHost }, 'driveFiles', 1);
}
return file;

View File

@ -86,8 +86,6 @@ async function postProcess(file: DriveFile, isExpired = false) {
perUserDriveChart.update(file, false);
if (file.userHost !== null) {
instanceChart.updateDrive(file, false);
Instances.decrement({ host: file.userHost }, 'driveUsage', file.size);
Instances.decrement({ host: file.userHost }, 'driveFiles', 1);
}
}