diff --git a/src/api/service/twitter.ts b/src/api/service/twitter.ts index 4d4aad498f..eb3531d86f 100644 --- a/src/api/service/twitter.ts +++ b/src/api/service/twitter.ts @@ -14,8 +14,8 @@ module.exports = (app: express.Application) => { const user = await User.findOneAndUpdate({ token: res.locals.user }, { - $unset: { - twitter: '' + $set: { + twitter: null } });