Fix spelling

This commit is contained in:
Evan Owens 2018-05-15 16:08:47 -04:00 committed by GitHub
parent 76bb31970f
commit 4086506acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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' }] }]);
} }
} }
}; };