mirror of
https://github.com/strapi/strapi.git
synced 2025-11-10 15:19:00 +00:00
Fix spelling
This commit is contained in:
parent
76bb31970f
commit
4086506acf
@ -13,7 +13,7 @@ module.exports = {
|
|||||||
try {
|
try {
|
||||||
ctx.send({ currentEnvironment: strapi.app.env });
|
ctx.send({ currentEnvironment: strapi.app.env });
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
ctx.badRequest(null, [{ messages: [{ id: 'An error occured' }] }]);
|
ctx.badRequest(null, [{ messages: [{ id: 'An error occurred' }] }]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ module.exports = {
|
|||||||
const allowGa = _.get(strapi.config, 'info.customs.allowGa', true);
|
const allowGa = _.get(strapi.config, 'info.customs.allowGa', true);
|
||||||
ctx.send({ allowGa });
|
ctx.send({ allowGa });
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
ctx.badRequest(null, [{ messages: [{ id: 'An error occured' }] }]);
|
ctx.badRequest(null, [{ messages: [{ id: 'An error occurred' }] }]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ module.exports = {
|
|||||||
|
|
||||||
return ctx.send({ layout });
|
return ctx.send({ layout });
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
return ctx.badRequest(null, [{ messages: [{ id: 'An error occured' }] }]);
|
return ctx.badRequest(null, [{ messages: [{ id: 'An error occurred' }] }]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ module.exports = {
|
|||||||
strapi.reload();
|
strapi.reload();
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
strapi.reload.isWatching = true;
|
strapi.reload.isWatching = true;
|
||||||
ctx.badRequest(null, [{ messages: [{ id: 'An error occured' }] }]);
|
ctx.badRequest(null, [{ messages: [{ id: 'An error occurred' }] }]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ module.exports = {
|
|||||||
|
|
||||||
ctx.send({ plugins });
|
ctx.send({ plugins });
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
ctx.badRequest(null, [{ messages: [{ id: 'An error occured' }] }]);
|
ctx.badRequest(null, [{ messages: [{ id: 'An error occurred' }] }]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ module.exports = {
|
|||||||
strapi.reload();
|
strapi.reload();
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
strapi.reload.isWatching = true;
|
strapi.reload.isWatching = true;
|
||||||
ctx.badRequest(null, [{ messages: [{ id: 'An error occured' }] }]);
|
ctx.badRequest(null, [{ messages: [{ id: 'An error occurred' }] }]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user