Refactor
This commit is contained in:
parent
a617b8dbed
commit
6b0d48423d
12 changed files with 79 additions and 79 deletions
|
|
@ -2,7 +2,7 @@ import * as Minio from 'minio';
|
|||
import DriveFile, { DriveFileChunk, IDriveFile } from '../../models/drive-file';
|
||||
import DriveFileThumbnail, { DriveFileThumbnailChunk } from '../../models/drive-file-thumbnail';
|
||||
import config from '../../config';
|
||||
import { driveChart } from '../stats';
|
||||
import { driveStats } from '../stats';
|
||||
|
||||
export default async function(file: IDriveFile, isExpired = false) {
|
||||
if (file.metadata.storage == 'minio') {
|
||||
|
|
@ -48,5 +48,5 @@ export default async function(file: IDriveFile, isExpired = false) {
|
|||
//#endregion
|
||||
|
||||
// 統計を更新
|
||||
driveChart.update(file, false);
|
||||
driveStats.update(file, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue