perf(backend): ドライブのチャートはローカルユーザーのみ生成するように
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
### Server
|
||||
- リモートユーザーのチャート生成を無効にするオプションを追加
|
||||
- ドライブのチャートはローカルユーザーのみ生成するように
|
||||
- 空のアンテナが作成できるのを修正
|
||||
|
||||
## 13.10.2
|
||||
|
@@ -619,10 +619,11 @@ export class DriveService {
|
||||
});
|
||||
}
|
||||
|
||||
// 統計を更新
|
||||
this.driveChart.update(file, true);
|
||||
if (file.userHost == null) {
|
||||
// ローカルユーザーのみ
|
||||
this.perUserDriveChart.update(file, true);
|
||||
if (file.userHost !== null) {
|
||||
} else {
|
||||
this.instanceChart.updateDrive(file, true);
|
||||
}
|
||||
|
||||
@@ -706,10 +707,11 @@ export class DriveService {
|
||||
this.driveFilesRepository.delete(file.id);
|
||||
}
|
||||
|
||||
// 統計を更新
|
||||
this.driveChart.update(file, false);
|
||||
if (file.userHost == null) {
|
||||
// ローカルユーザーのみ
|
||||
this.perUserDriveChart.update(file, false);
|
||||
if (file.userHost !== null) {
|
||||
} else {
|
||||
this.instanceChart.updateDrive(file, false);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user