mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-02 00:38:14 +09:00
[API] Fix bug
This commit is contained in:
parent
5da436a285
commit
a9a763f8c4
@ -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 New Issue
Block a user