jbilcke-hf HF staff commited on
Commit
f3f1f99
1 Parent(s): 179cbc0
Files changed (1) hide show
  1. src/index.mts +2 -2
src/index.mts CHANGED
@@ -177,9 +177,9 @@ app.delete("/posts/:appId/:postId", async (req, res) => {
177
  }
178
 
179
  try {
180
- const post = await deletePost(appId, postId)
181
  res.status(200)
182
- res.write(JSON.stringify(post))
183
  res.end()
184
  } catch (err) {
185
  console.error(err)
 
177
  }
178
 
179
  try {
180
+ await deletePost(appId, postId)
181
  res.status(200)
182
+ res.write(JSON.stringify({ success: true }))
183
  res.end()
184
  } catch (err) {
185
  console.error(err)