mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Update packages/core/admin/server/controllers/api-token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
This commit is contained in:
parent
e10cbe8885
commit
1d791e47ea
@ -116,7 +116,6 @@ module.exports = {
|
|||||||
* as a string. This way we avoid issues with integers in the db.
|
* as a string. This way we avoid issues with integers in the db.
|
||||||
*/
|
*/
|
||||||
if (!!nameAlreadyTaken && !stringEquals(nameAlreadyTaken.id, id)) {
|
if (!!nameAlreadyTaken && !stringEquals(nameAlreadyTaken.id, id)) {
|
||||||
console.log('here');
|
|
||||||
throw new ApplicationError('Name already taken');
|
throw new ApplicationError('Name already taken');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user