mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-22 12:03:39 +00:00
Resolve conflicts
This commit is contained in:
@@ -9,7 +9,7 @@ module.exports = async (app: express.Application) => {
|
||||
if (config.github_bot == null) return;
|
||||
|
||||
const bot = await User.findOne({
|
||||
username_lower: config.github_bot.username.toLowerCase()
|
||||
usernameLower: config.github_bot.username.toLowerCase()
|
||||
});
|
||||
|
||||
if (bot == null) {
|
||||
|
||||
@@ -128,7 +128,7 @@ module.exports = (app: express.Application) => {
|
||||
|
||||
const user = await User.findOne({
|
||||
host: null,
|
||||
'account.twitter.user_id': result.userId
|
||||
'account.twitter.userId': result.userId
|
||||
});
|
||||
|
||||
if (user == null) {
|
||||
@@ -155,10 +155,10 @@ module.exports = (app: express.Application) => {
|
||||
}, {
|
||||
$set: {
|
||||
'account.twitter': {
|
||||
access_token: result.accessToken,
|
||||
access_token_secret: result.accessTokenSecret,
|
||||
user_id: result.userId,
|
||||
screen_name: result.screenName
|
||||
accessToken: result.accessToken,
|
||||
accessTokenSecret: result.accessTokenSecret,
|
||||
userId: result.userId,
|
||||
screenName: result.screenName
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user