mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-03 21:15:23 +02:00
refactor: add organizations system
This commit is contained in:
@@ -94,8 +94,8 @@ export const updateAdminById = async (
|
||||
};
|
||||
|
||||
export const isAdminPresent = async () => {
|
||||
const admin = await db.query.users.findFirst({
|
||||
where: eq(users.role, "admin"),
|
||||
const admin = await db.query.user.findFirst({
|
||||
where: eq(user.role, "admin"),
|
||||
});
|
||||
if (!admin) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user