diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-25 20:19:14 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-25 20:19:14 +0900 |
| commit | 558b8977005418a0ddc172d707621202d49db2ba (patch) | |
| tree | c50ae125cbfb0452146caab061da7960b69c0100 /cli | |
| parent | Update gitignore (diff) | |
| download | misskey-558b8977005418a0ddc172d707621202d49db2ba.tar.gz misskey-558b8977005418a0ddc172d707621202d49db2ba.tar.bz2 misskey-558b8977005418a0ddc172d707621202d49db2ba.zip | |
リモートサーバーのファイルをデータベースに保存せず、クライアントで直接表示させられるように
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/clean-cached-remote-files.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/clean-cached-remote-files.js b/cli/clean-cached-remote-files.js index e4db37ef97..a9c38a4cdf 100644 --- a/cli/clean-cached-remote-files.js +++ b/cli/clean-cached-remote-files.js @@ -8,7 +8,8 @@ const { default: User } = require('../built/models/user'); const q = { 'metadata._user.host': { $ne: null - } + }, + 'metadata.isMetaOnly': false }; async function main() { @@ -56,8 +57,7 @@ async function main() { DriveFile.update({ _id: file._id }, { $set: { - 'metadata.deletedAt': new Date(), - 'metadata.isExpired': true + 'metadata.isMetaOnly': true } }) ]).then(async () => { |