リモートのファイルをキャッシュするかどうかの設定をDBに保存するように
This commit is contained in:
@ -50,6 +50,17 @@ if ((config as any).remoteDriveCapacityMb) {
|
||||
}
|
||||
});
|
||||
}
|
||||
if ((config as any).preventCacheRemoteFiles) {
|
||||
Meta.findOne({}).then(m => {
|
||||
if (m != null && m.cacheRemoteFiles == null) {
|
||||
Meta.update({}, {
|
||||
$set: {
|
||||
cacheRemoteFiles: !(config as any).preventCacheRemoteFiles
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export type IMeta = {
|
||||
name?: string;
|
||||
@ -66,6 +77,8 @@ export type IMeta = {
|
||||
hidedTags?: string[];
|
||||
bannerUrl?: string;
|
||||
|
||||
cacheRemoteFiles?: boolean;
|
||||
|
||||
/**
|
||||
* Drive capacity of a local user (MB)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user