From 0fdcefc0d50ee752e57eaee78072e0b7f33ad05f Mon Sep 17 00:00:00 2001 From: Lee Date: Thu, 28 Nov 2024 02:00:44 +0000 Subject: [PATCH] Update src/app/common/hastebin.ts --- src/app/common/hastebin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/common/hastebin.ts b/src/app/common/hastebin.ts index 087878e..3780ac1 100644 --- a/src/app/common/hastebin.ts +++ b/src/app/common/hastebin.ts @@ -12,6 +12,6 @@ export async function createHaste(content: string): Promise { body: content, }); - const { id } = await response.json(); - return `${PASTE_URL}/${id}`; + const { key } = await response.json(); + return `${PASTE_URL}/${key}`; }