mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-25 06:41:36 -07:00
[API] Fix bug
This commit is contained in:
parent
5ddff75cf8
commit
6b588bf053
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ module.exports = (app: express.Application) => {
|
||||||
const user = await User.findOneAndUpdate({
|
const user = await User.findOneAndUpdate({
|
||||||
token: res.locals.user
|
token: res.locals.user
|
||||||
}, {
|
}, {
|
||||||
$unset: {
|
$set: {
|
||||||
twitter: ''
|
twitter: null
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue