@@ -35,7 +35,7 @@ export const debounceRoutes = HttpRouter.empty.pipe(
3535 const client = JobsClient . fromBinding ( env . JOBS ) ;
3636 const body = yield * HttpServerRequest . schemaBodyJson ( AddEventRequest ) ;
3737
38- const result = yield * client . debounce ( "debounceExample " ) . add ( {
38+ const result = yield * client . debounce ( "debounceExample2 " ) . add ( {
3939 id : body . id ,
4040 event : {
4141 actionId : body . actionId ,
@@ -53,7 +53,7 @@ export const debounceRoutes = HttpRouter.empty.pipe(
5353 created : result . created ,
5454 } ,
5555 } ) ;
56- } )
56+ } ) ,
5757 ) ,
5858
5959 // POST /debounce/flush - Manually flush the buffer
@@ -64,7 +64,7 @@ export const debounceRoutes = HttpRouter.empty.pipe(
6464 const client = JobsClient . fromBinding ( env . JOBS ) ;
6565 const body = yield * HttpServerRequest . schemaBodyJson ( IdRequest ) ;
6666
67- const result = yield * client . debounce ( "debounceExample " ) . flush ( body . id ) ;
67+ const result = yield * client . debounce ( "debounceExample2 " ) . flush ( body . id ) ;
6868
6969 return yield * HttpServerResponse . json ( {
7070 success : true ,
@@ -74,7 +74,7 @@ export const debounceRoutes = HttpRouter.empty.pipe(
7474 reason : result . reason ,
7575 } ,
7676 } ) ;
77- } )
77+ } ) ,
7878 ) ,
7979
8080 // POST /debounce/clear - Clear the buffer without flushing
@@ -85,7 +85,7 @@ export const debounceRoutes = HttpRouter.empty.pipe(
8585 const client = JobsClient . fromBinding ( env . JOBS ) ;
8686 const body = yield * HttpServerRequest . schemaBodyJson ( IdRequest ) ;
8787
88- const result = yield * client . debounce ( "debounceExample " ) . clear ( body . id ) ;
88+ const result = yield * client . debounce ( "debounceExample2 " ) . clear ( body . id ) ;
8989
9090 return yield * HttpServerResponse . json ( {
9191 success : true ,
@@ -94,7 +94,7 @@ export const debounceRoutes = HttpRouter.empty.pipe(
9494 discardedEvents : result . discardedEvents ,
9595 } ,
9696 } ) ;
97- } )
97+ } ) ,
9898 ) ,
9999
100100 // POST /debounce/status - Get debounce status
@@ -105,13 +105,13 @@ export const debounceRoutes = HttpRouter.empty.pipe(
105105 const client = JobsClient . fromBinding ( env . JOBS ) ;
106106 const body = yield * HttpServerRequest . schemaBodyJson ( IdRequest ) ;
107107
108- const result = yield * client . debounce ( "debounceExample " ) . status ( body . id ) ;
108+ const result = yield * client . debounce ( "debounceExample2 " ) . status ( body . id ) ;
109109
110110 return yield * HttpServerResponse . json ( {
111111 success : true ,
112112 result,
113113 } ) ;
114- } )
114+ } ) ,
115115 ) ,
116116
117117 // POST /debounce/state - Get debounce state
@@ -122,14 +122,16 @@ export const debounceRoutes = HttpRouter.empty.pipe(
122122 const client = JobsClient . fromBinding ( env . JOBS ) ;
123123 const body = yield * HttpServerRequest . schemaBodyJson ( IdRequest ) ;
124124
125- const result = yield * client . debounce ( "debounceExample" ) . getState ( body . id ) ;
125+ const result = yield * client
126+ . debounce ( "debounceExample2" )
127+ . getState ( body . id ) ;
126128
127129 return yield * HttpServerResponse . json ( {
128130 success : true ,
129131 result : {
130132 state : result . state ,
131133 } ,
132134 } ) ;
133- } )
134- )
135+ } ) ,
136+ ) ,
135137) ;
0 commit comments