mirror of
https://github.com/strapi/strapi.git
synced 2025-09-07 15:49:24 +00:00
Fix typo
This commit is contained in:
parent
81cf5c4ecd
commit
c79106bff8
@ -59,7 +59,7 @@ module.exports = async (ctx, next) => {
|
||||
const [token] = await strapi.query('token').find({token: ctx.request.query.token});
|
||||
|
||||
if (!token) {
|
||||
throw new Error('Invalid token: This token not exist');
|
||||
throw new Error(`Invalid token: This token doesn't exist`);
|
||||
} else {
|
||||
if (token.user && typeof token.token === 'string') {
|
||||
id = token.user.id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user