fix
This commit is contained in:
parent
2d6d3fd7a9
commit
ee779a1e56
|
|
@ -48,7 +48,6 @@ export const _ = {
|
|||
case "db-sync": {
|
||||
const res = await fetch(action.url);
|
||||
const text = await res.text();
|
||||
console.log(text);
|
||||
if (text) {
|
||||
await Bun.write(dir("app/db/prisma/schema.prisma"), text);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ export const preparePrisma = async () => {
|
|||
if ((await existsAsync(dir("app/db/.env"))) && !g.db) {
|
||||
try {
|
||||
if (g.mode !== "dev") {
|
||||
await $({ cwd: dir(`app/db`) })`bun prisma db pull --force`;
|
||||
await $({ cwd: dir(`app/db`) })`bun prisma generate`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue