refactor(auth): added in timeout for adding new roles to make sure everything else is connected 1st

This commit is contained in:
2025-03-13 15:40:10 -05:00
parent f69a40af3a
commit 2130adedb3

View File

@@ -12,7 +12,9 @@ import {areRolesIn} from "./utils/roleCheck.js";
const app = new OpenAPIHono();
// run the role check
areRolesIn();
setTimeout(() => {
areRolesIn();
}, 5000);
app.route("auth/login", login);
app.route("auth/register", register);