Ensure key is deleted before returning success
This commit is contained in:
parent
5e4a546111
commit
2c7969f140
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -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(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue