diff --git a/.env.example b/.env.example index 1032aa6..f4ed27c 100644 --- a/.env.example +++ b/.env.example @@ -2,3 +2,5 @@ MY_SQL_USER=root MY_SQL_PASSWORD=1234567890 MY_SQL_DB=educa7ls MY_SQL_PORT=3306 +MY_SQL_HOST=localhost +APP_PORT=3000 diff --git a/src/main.ts b/src/main.ts index 7404b86..2c0e75d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,7 +12,7 @@ async function bootstrap() { // Serve static files app.use("/static", express.static(path.join(__dirname, "..", "static"))); - await app.listen(3000); + await app.listen(parseInt(process.env.APP_PORT ?? "3000", 10)); } bootstrap(); diff --git a/src/views/components/Registers.tsx b/src/views/components/Registers.tsx index 262c981..0e2eb57 100644 --- a/src/views/components/Registers.tsx +++ b/src/views/components/Registers.tsx @@ -41,8 +41,6 @@ export function Registers(props: { person: Person | null, lastUpdate: number })
- Nombres y Apellidos -
- + ((r1.fecha_actual < r2.fecha_actual) ? 1 : -1))}> {(register) => } @@ -220,7 +218,7 @@ function Register(props: { cert: RegisterReturn, onUpdate: () => void }) { - ) + ); }