mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 00:18:19 +01:00
fix(cli): 🚑 Make cli work again (wasn't connecting to database so it would hang)
This commit is contained in:
parent
214f4d5a3e
commit
8b429fada6
8
.vscode/settings.json
vendored
8
.vscode/settings.json
vendored
|
|
@ -2,5 +2,11 @@
|
|||
"typescript.tsdk": "node_modules/typescript/lib",
|
||||
"jest.jestCommandLine": "/home/jessew/.bun/bin/bun test",
|
||||
"jest.rootPath": ".",
|
||||
"conventionalCommits.scopes": ["database", "frontend", "build", "api"]
|
||||
"conventionalCommits.scopes": [
|
||||
"database",
|
||||
"frontend",
|
||||
"build",
|
||||
"api",
|
||||
"cli"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
3
cli.ts
3
cli.ts
|
|
@ -28,9 +28,10 @@ import {
|
|||
findFirstUser,
|
||||
findManyUsers,
|
||||
} from "~database/entities/User";
|
||||
import { db } from "~drizzle/db";
|
||||
import { db, client } from "~drizzle/db";
|
||||
import { emoji, openIdAccount, status, user } from "~drizzle/schema";
|
||||
|
||||
await client.connect();
|
||||
const args = process.argv;
|
||||
|
||||
const filterObjects = <T extends object>(output: T[], fields: string[]) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue