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