mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
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
30 lines
646 B
TypeScript
30 lines
646 B
TypeScript
import { drizzle } from "drizzle-orm/postgres-js";
|
|
import postgres from "postgres";
|
|
|
|
const connectionString = process.env.DATABASE_URL!;
|
|
|
|
const pg = postgres(connectionString, { max: 1 });
|
|
const _db = drizzle(pg);
|
|
|
|
async function seed() {
|
|
console.log("> Seed:", process.env.DATABASE_PATH, "\n");
|
|
|
|
// const authenticationR = await db
|
|
// .insert(users)
|
|
// .values([
|
|
// {
|
|
// email: "user1@hotmail.com",
|
|
// password: password("12345671"),
|
|
// },
|
|
// ])
|
|
// .onConflictDoNothing()
|
|
// .returning();
|
|
|
|
// console.log("\nSemillas Update:", authenticationR.length);
|
|
}
|
|
|
|
seed().catch((e) => {
|
|
console.error(e);
|
|
process.exit(1);
|
|
});
|