deprecate /migrate endpoint

This commit is contained in:
timothycarambat 2024-03-26 15:32:07 -07:00
parent 7de23dbb2d
commit 1cd255c1ec

View file

@ -55,10 +55,6 @@ function systemEndpoints(app) {
});
app.get("/migrate", async (_, response) => {
const execSync = require("child_process").execSync;
execSync("npx prisma migrate deploy --schema=./prisma/schema.prisma", {
stdio: "inherit",
});
response.sendStatus(200);
});