mirror of
https://github.com/idootop/mi-gpt.git
synced 2025-04-21 07:33:17 +00:00
fix: db path
This commit is contained in:
parent
e427f3337a
commit
91613c36ac
@ -32,7 +32,7 @@ export function getDBInfo() {
|
|||||||
const dbPath = isExternal
|
const dbPath = isExternal
|
||||||
? "node_modules/mi-gpt/prisma/app.db"
|
? "node_modules/mi-gpt/prisma/app.db"
|
||||||
: "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`;
|
const withSchema = `--schema ${schemaPath}/prisma/schema.prisma`;
|
||||||
return { dbPath, isExternal, withSchema };
|
return { dbPath, isExternal, withSchema };
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user