We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e65a47 commit f48e5a4Copy full SHA for f48e5a4
phoenix-api/src/blogs/delete_page.ts
@@ -18,7 +18,6 @@ export async function deletePage(ctx: Context): Promise<Response> {
18
const now = new Date();
19
20
await ctx.var.db.query('DELETE FROM pages WHERE id = $1', [apiInput.page_id]);
21
- await ctx.var.db.query(`UPDATE blogs SET updated_at = $1 WHERE id = $2`, [now, page.blog_id]);
22
23
return ctx.json(convertToApiResponse({ ok: true }));
24
}
0 commit comments