This commit is contained in:
Rizky
2024-06-28 00:25:38 +07:00
parent 904585868a
commit 332061d5d0
4 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ export const _ = {
try {
const result = await execQuery(body, g.db);
res.send(result);
return result;
} catch (e: any) {
console.log("_dbs error", body, e.message);
res.sendStatus(500);
+1
View File
@@ -109,6 +109,7 @@ export const _ = {
try {
await $({ cwd: dir("app/db") })`bun install`;
await $({})`cp -f .env app/db`;
await $({ cwd: dir("app/db") })`bun prisma db pull --force`;
await $({ cwd: dir("app/db") })`bun prisma generate`;
await Bun.write(