diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-03-12 12:46:01 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-03-12 12:46:01 +0900 |
| commit | f19ac5320e507f8d2860f8648e53e4ef12e1ce45 (patch) | |
| tree | e35b21de95147924ad913413b36c3561780f06a8 /src/queue | |
| parent | activeなジョブ数のカウント方法を分けた (diff) | |
| download | sharkey-f19ac5320e507f8d2860f8648e53e4ef12e1ce45.tar.gz sharkey-f19ac5320e507f8d2860f8648e53e4ef12e1ce45.tar.bz2 sharkey-f19ac5320e507f8d2860f8648e53e4ef12e1ce45.zip | |
Remove unnecessary checking
Diffstat (limited to 'src/queue')
| -rw-r--r-- | src/queue/processors/db/import-following.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/queue/processors/db/import-following.ts b/src/queue/processors/db/import-following.ts index 8ab20aa8bb..b814908cba 100644 --- a/src/queue/processors/db/import-following.ts +++ b/src/queue/processors/db/import-following.ts @@ -10,7 +10,6 @@ import { getOriginalUrl } from '../../../misc/get-drive-file-url'; import parseAcct from '../../../misc/acct/parse'; import resolveUser from '../../../remote/resolve-user'; import { downloadTextFile } from '../../../misc/download-text-file'; -import Following from '../../../models/following'; const logger = queueLogger.createSubLogger('import-following'); @@ -46,14 +45,6 @@ export async function importFollowing(job: Bull.Job, done: any): Promise<void> { target = await resolveUser(username, host); } - // Check if already following - const exist = await Following.findOne({ - followerId: user._id, - followeeId: target._id - }); - - if (exist) continue; - follow(user, target); } |