diff --git a/server/services/auth/authService.ts b/server/services/auth/authService.ts index 6ce6ffe..a8282f4 100644 --- a/server/services/auth/authService.ts +++ b/server/services/auth/authService.ts @@ -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);