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, }), });