refactor(auth): added in timeout for adding new roles to make sure everything else is connected 1st
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user