File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11export interface Env {
2- USER_NOTIFICATION : KVNamespace ;
2+ USERS_NOTIFICATION_CONFIG : KVNamespace ;
33}
44
55export default {
66 async fetch ( request , env , ctx ) : Promise < Response > {
77 try {
8- await env . USER_NOTIFICATION . put ( "user_2" , "disabled" ) ;
9- const value = await env . USER_NOTIFICATION . get ( "user_2" ) ;
8+ await env . USERS_NOTIFICATION_CONFIG . put ( "user_2" , "disabled" ) ;
9+ const value = await env . USERS_NOTIFICATION_CONFIG . get ( "user_2" ) ;
1010 if ( value === null ) {
1111 return new Response ( "Value not found" , { status : 404 } ) ;
1212 }
Original file line number Diff line number Diff line change 1212 },
1313 "kv_namespaces" : [
1414 {
15- "binding" : " USER_NOTIFICATION " ,
15+ "binding" : " USERS_NOTIFICATION_CONFIG " ,
1616 "id" : " <ADD YOUR KV NAMESPACEID HERE>"
1717 }
1818 ]
You can’t perform that action at this time.
0 commit comments