chore: Upgrade Prettier 1.8 -> 2.0 (#1436)

This commit is contained in:
Tom Moor
2020-08-08 18:53:11 -07:00
committed by GitHub
parent 68dcb4de5f
commit e312b264a6
218 changed files with 1156 additions and 1169 deletions

View File

@ -37,19 +37,19 @@ function filterServices(team) {
let output = services;
if (team && !team.googleId) {
output = reject(output, service => service.id === "google");
output = reject(output, (service) => service.id === "google");
}
if (team && !team.slackId) {
output = reject(output, service => service.id === "slack");
output = reject(output, (service) => service.id === "slack");
}
if (!team || !team.guestSignin) {
output = reject(output, service => service.id === "email");
output = reject(output, (service) => service.id === "email");
}
return output;
}
router.post("auth.config", async ctx => {
router.post("auth.config", async (ctx) => {
// If self hosted AND there is only one team then that team becomes the
// brand for the knowledge base and it's guest signin option is used for the
// root login page.
@ -100,7 +100,7 @@ router.post("auth.config", async ctx => {
};
});
router.post("auth.info", auth(), async ctx => {
router.post("auth.info", auth(), async (ctx) => {
const user = ctx.state.user;
const team = await Team.findByPk(user.teamId);