summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 19:22:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 19:22:53 +0900
commit78de0f02aedc8e82ec2e624971e9fd267947ffc4 (patch)
tree1eccc3dce8f0a6b4a889f6161ddecd5bf2a99450
parentFix bug (diff)
downloadsharkey-78de0f02aedc8e82ec2e624971e9fd267947ffc4.tar.gz
sharkey-78de0f02aedc8e82ec2e624971e9fd267947ffc4.tar.bz2
sharkey-78de0f02aedc8e82ec2e624971e9fd267947ffc4.zip
Fix bug
-rw-r--r--tools/migration/nighthike/4.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/migration/nighthike/4.js b/tools/migration/nighthike/4.js
index 8d07140ba5..2e252b7f4e 100644
--- a/tools/migration/nighthike/4.js
+++ b/tools/migration/nighthike/4.js
@@ -212,21 +212,21 @@ db.users.update({}, {
pinned_post_id: 'pinnedPostId',
is_suspended: 'isSuspended',
host_lower: 'hostLower',
- 'twitter.access_token': 'twitter.accessToken',
- 'twitter.access_token_secret': 'twitter.accessTokenSecret',
- 'twitter.user_id': 'twitter.userId',
- 'twitter.screen_name': 'twitter.screenName',
- 'line.user_id': 'line.userId',
- last_used_at: 'lastUsedAt',
- is_bot: 'isBot',
- is_pro: 'isPro',
- two_factor_secret: 'twoFactorSecret',
- two_factor_enabled: 'twoFactorEnabled',
- client_settings: 'clientSettings'
+ 'account.last_used_at': 'account.lastUsedAt',
+ 'account.is_bot': 'account.isBot',
+ 'account.is_pro': 'account.isPro',
+ 'account.two_factor_secret': 'account.twoFactorSecret',
+ 'account.two_factor_enabled': 'account.twoFactorEnabled',
+ 'account.client_settings': 'account.clientSettings'
},
$unset: {
likes_count: '',
liked_count: '',
- latest_post: ''
+ latest_post: '',
+ 'account.twitter.access_token': '',
+ 'account.twitter.access_token_secret': '',
+ 'account.twitter.user_id': '',
+ 'account.twitter.screen_name': '',
+ 'account.line.user_id': ''
}
}, false, true);