Ensure key is deleted before returning success

This commit is contained in:
Erisa A 2022-01-13 02:34:00 +00:00 committed by GitHub
parent 5e4a546111
commit 2c7969f140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ async function handleRequest(request) {
}, },
) )
} else { } else {
kv.delete(key) await kv.delete(key)
return new Response( return new Response(
JSON.stringify( JSON.stringify(
{ {