Skip to content

Commit f48e5a4

Browse files
author
dev
committed
api: fix deletePage
1 parent 9e65a47 commit f48e5a4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

phoenix-api/src/blogs/delete_page.ts

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export async function deletePage(ctx: Context): Promise<Response> {
1818
const now = new Date();
1919

2020
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]);
2221

2322
return ctx.json(convertToApiResponse({ ok: true }));
2423
}

0 commit comments

Comments
 (0)