mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Switch all routes to use Zod for strict validation
This commit is contained in:
parent
53fa9ca545
commit
0b1c1ba128
67 changed files with 2459 additions and 2600 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import { config } from "config-manager";
|
||||
import { drizzle } from "drizzle-orm/node-postgres";
|
||||
import { migrate } from "drizzle-orm/postgres-js/migrator";
|
||||
import { LogLevel, type LogManager, type MultiLogManager } from "log-manager";
|
||||
import { Client } from "pg";
|
||||
import * as schema from "./schema";
|
||||
import { LogLevel, type LogManager, type MultiLogManager } from "log-manager";
|
||||
import { migrate } from "drizzle-orm/postgres-js/migrator";
|
||||
|
||||
export const client = new Client({
|
||||
host: config.database.host,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue