Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Fix some issues
  • Loading branch information
xyTom authored Dec 4, 2021
1 parent 0decf1d commit b672806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function save_url(URL){
let is_exist=await LINKS.get(random_key)
console.log(is_exist)
if (is_exist == null)
return await LINKS.put(random_key, URL, {expirationTtl: 86400}),random_key
return await LINKS.put(random_key, URL),random_key
else
save_url(URL)
}
Expand Down

0 comments on commit b672806

Please sign in to comment.