diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-21 21:12:12 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-21 21:12:12 +0900 |
| commit | a9a763f8c48bb6be4707a25ff690e1ab274dba82 (patch) | |
| tree | ed867d0cfed1cdb8da554f65f88155eda5794911 /src/api | |
| parent | なんかもうめっちゃ変えた (diff) | |
| download | sharkey-a9a763f8c48bb6be4707a25ff690e1ab274dba82.tar.gz sharkey-a9a763f8c48bb6be4707a25ff690e1ab274dba82.tar.bz2 sharkey-a9a763f8c48bb6be4707a25ff690e1ab274dba82.zip | |
[API] Fix bug
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/service/twitter.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 } }); |