mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-27 08:03:01 +00:00
[API] Fix bug
This commit is contained in:
parent
5da436a285
commit
a9a763f8c4
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ module.exports = (app: express.Application) => {
|
|||
const user = await User.findOneAndUpdate({
|
||||
token: res.locals.user
|
||||
}, {
|
||||
$unset: {
|
||||
twitter: ''
|
||||
$set: {
|
||||
twitter: null
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue