mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-06 20:22:14 +00:00
chore: clean up unused variables and improve error handling across codebase
This commit focuses on removing unused variables, adding placeholder error handling, and generally tidying up various files across the Dokploy application. Changes include: - Removing unused imports and variables - Adding placeholder error handling in catch blocks - Cleaning up commented-out code - Removing deprecated utility files - Improving type safety and code consistency
This commit is contained in:
@@ -12,8 +12,8 @@ import { IS_CLOUD } from "../constants";
|
||||
|
||||
export type User = typeof users_temp.$inferSelect;
|
||||
export const createInvitation = async (
|
||||
input: typeof apiCreateUserInvitation._type,
|
||||
adminId: string,
|
||||
_input: typeof apiCreateUserInvitation._type,
|
||||
_adminId: string,
|
||||
) => {
|
||||
// await db.transaction(async (tx) => {
|
||||
// const result = await tx
|
||||
@@ -83,8 +83,8 @@ export const updateUser = async (userId: string, userData: Partial<User>) => {
|
||||
};
|
||||
|
||||
export const updateAdminById = async (
|
||||
adminId: string,
|
||||
adminData: Partial<User>,
|
||||
_adminId: string,
|
||||
_adminData: Partial<User>,
|
||||
) => {
|
||||
// const admin = await db
|
||||
// .update(admins)
|
||||
@@ -102,8 +102,6 @@ export const isAdminPresent = async () => {
|
||||
where: eq(member.role, "owner"),
|
||||
});
|
||||
|
||||
console.log("admin", admin);
|
||||
|
||||
if (!admin) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user