Skip to content

Commit

Permalink
fix(database): check for success before informing user (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap authored May 16, 2024
1 parent 7e45f58 commit 89bb020
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/deploy/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,10 @@ export const updateDatabase = api.put<UpdateDatabase>(
ctx.request = ctx.req({ body: JSON.stringify(body) });
yield* next();

if (!ctx.json.ok) {
return;
}

ctx.loader = {
message: "Saved changes successfully!",
};
Expand Down

0 comments on commit 89bb020

Please sign in to comment.