mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Merge branch 'master' into graph-tests
This commit is contained in:
@@ -123,7 +123,7 @@ router.put('/username', authorization.needed(), (req, res, next) => {
|
||||
})
|
||||
.catch(error => {
|
||||
if (error.code === 11000) {
|
||||
next(errors.ErrDisplayTaken);
|
||||
next(errors.ErrUsernameTaken);
|
||||
} else {
|
||||
next(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user