chore: More flakey test improvements (#5801)

This commit is contained in:
Tom Moor
2023-09-09 18:30:19 -04:00
committed by GitHub
parent 7270e65f0c
commit 80ef0a38d6
37 changed files with 245 additions and 210 deletions

View File

@@ -27,7 +27,9 @@ router.post("auth.config", async (ctx: APIContext<T.AuthConfigReq>) => {
// brand for the knowledge base and it's guest signin option is used for the
// root login page.
if (!env.isCloudHosted) {
const team = await Team.scope("withAuthenticationProviders").findOne();
const team = await Team.scope("withAuthenticationProviders").findOne({
order: [["createdAt", "DESC"]],
});
if (team) {
ctx.body = {