Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cf-pages committed Jan 18, 2023
1 parent 139945d commit e15b3ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/file/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export async function onRequest(context) { // Contents of context object
if (env.img_url){
//add image to kv
await env.img_url.put(params.id, "",{
metadata: { ListType: "None", rating_label: "None",TimeStamp: time },
metadata: { ListType: "None", Label: "None",TimeStamp: time },
});
}else{
console.log("Not enbaled KV")
Expand All @@ -85,7 +85,7 @@ export async function onRequest(context) { // Contents of context object
console.log(moderate_data)
console.log("---env.img_url---")
console.log(env.img_url=="true")
if (env.img_url){}else{
if (env.img_url){
//add image to kv
await env.img_url.put(params.id, "",{
metadata: { ListType: "None", Label: moderate_data.rating_label,TimeStamp: time },
Expand Down

0 comments on commit e15b3ab

Please sign in to comment.