Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Include card id in initial kv value
  • Loading branch information
regalijan committed Nov 16, 2023
1 parent 4649b72 commit ffe4c79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/api/data-transfers/create.ts
Expand Up @@ -72,9 +72,12 @@ export async function onRequestPost(context: RequestContext) {

if (!createCardReq.ok) return jsonError("Failed to create entry", 500);

const { id: cardId }: { id: string } = await createCardReq.json();

await context.env.DATA.put(
`datatransfer_${id}`,
JSON.stringify({
cardId,
oldUser: authedUser,
}),
{
Expand Down

0 comments on commit ffe4c79

Please sign in to comment.