From 5b787b8ad724c454bff97176c664a3c187c807aa Mon Sep 17 00:00:00 2001 From: Desmond Grealy Date: Fri, 30 Dec 2022 17:31:09 -0800 Subject: [PATCH] (post_id -> message_id), (user_post_id -> user_message_id) --- website/src/pages/api/new_task/[task_type].ts | 2 +- website/src/pages/api/update_task.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/src/pages/api/new_task/[task_type].ts b/website/src/pages/api/new_task/[task_type].ts index 3943536c..6c3eb01b 100644 --- a/website/src/pages/api/new_task/[task_type].ts +++ b/website/src/pages/api/new_task/[task_type].ts @@ -62,7 +62,7 @@ const handler = async (req, res) => { "Content-Type": "application/json", }, body: JSON.stringify({ - post_id: registeredTask.id, + message_id: registeredTask.id, }), }); const ack = await ackRes.json(); diff --git a/website/src/pages/api/update_task.ts b/website/src/pages/api/update_task.ts index 6760623c..8a6de73b 100644 --- a/website/src/pages/api/update_task.ts +++ b/website/src/pages/api/update_task.ts @@ -52,8 +52,8 @@ const handler = async (req, res) => { display_name: token.name || token.email, auth_method: "local", }, - post_id: id, - user_post_id: interaction.id, + message_id: id, + user_message_id: interaction.id, ...content, }), });