mirror of
https://github.com/idootop/mi-gpt.git
synced 2025-04-07 00:31:47 +00:00
fix: db path
This commit is contained in:
parent
e427f3337a
commit
91613c36ac
|
@ -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 };
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user