fix: db path

This commit is contained in:
WJG 2024-02-28 22:54:15 +08:00
parent e427f3337a
commit 91613c36ac
No known key found for this signature in database
GPG Key ID: 258474EF8590014A

View File

@ -32,7 +32,7 @@ export function getDBInfo() {
const dbPath = isExternal
? "node_modules/mi-gpt/prisma/app.db"
: "prisma/app.db";
const schemaPath = isExternal ? "node_modules/mi-gpt" : "";
const schemaPath = isExternal ? "node_modules/mi-gpt" : ".";
const withSchema = `--schema ${schemaPath}/prisma/schema.prisma`;
return { dbPath, isExternal, withSchema };
}