Spaces:
Runtime error
Runtime error
Commit
•
f3f1f99
1
Parent(s):
179cbc0
up
Browse files- 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 |
-
|
181 |
res.status(200)
|
182 |
-
res.write(JSON.stringify(
|
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)
|