リモートのファイルをキャッシュするかどうかの設定をDBに保存するように
This commit is contained in:
		| @@ -82,6 +82,13 @@ export const meta = { | ||||
| 				'en-US': 'Drive capacity of a remote user (MB)' | ||||
| 			} | ||||
| 		}, | ||||
|  | ||||
| 		cacheRemoteFiles: { | ||||
| 			validator: $.bool.optional, | ||||
| 			desc: { | ||||
| 				'ja-JP': 'リモートのファイルをキャッシュするか否か' | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| }; | ||||
|  | ||||
| @@ -128,6 +135,10 @@ export default define(meta, (ps) => new Promise(async (res, rej) => { | ||||
| 		set.remoteDriveCapacityMb = ps.remoteDriveCapacityMb; | ||||
| 	} | ||||
|  | ||||
| 	if (ps.cacheRemoteFiles !== undefined) { | ||||
| 		set.cacheRemoteFiles = ps.cacheRemoteFiles; | ||||
| 	} | ||||
|  | ||||
| 	await Meta.update({}, { | ||||
| 		$set: set | ||||
| 	}, { upsert: true }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo