File tree 2 files changed +1
-19
lines changed
2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 1
1
export type Env = {
2
2
DO : DurableObjectNamespace
3
3
ENV_DISCRIMINATOR : string
4
- PUSHBULLET_AUTH_TOKEN : string
5
4
HYPERDX_API_KEY : string
6
5
OTEL_SERVICE_NAME : string
7
6
OTEL_EXPORTER_OTLP_ENDPOINT : string
Original file line number Diff line number Diff line change @@ -242,24 +242,7 @@ class AShoppingBird {
242
242
masterKey : this . env . KEEP_MASTER_KEY ,
243
243
} )
244
244
245
- console . log ( { authenticated } )
246
-
247
- if ( ! authenticated ) {
248
- await this . setAuthState ( false )
249
-
250
- await fetch ( "https://api.pushbullet.com/v2/pushes" , {
251
- method : "POST" ,
252
- headers : {
253
- "Content-Type" : "application/json" ,
254
- "Access-Token" : this . env . PUSHBULLET_AUTH_TOKEN ,
255
- } ,
256
- body : JSON . stringify ( {
257
- type : "note" ,
258
- title : "Hello Admin!" ,
259
- body : "You need to re-authenticate the Shopping Bird bot" ,
260
- } ) ,
261
- } )
262
- }
245
+ await this . setAuthState ( authenticated )
263
246
264
247
const client = new ExternalClient ( {
265
248
bot,
You can’t perform that action at this time.
0 commit comments