File tree 4 files changed +9
-7
lines changed
4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { rawToNano } from '../utils';
5
5
import { logger } from '../logger' ;
6
6
import { INVOICE_MIN_AMOUNT } from '../constants' ;
7
7
8
- export class PaymentListenerDurable extends DurableObject < Env > {
8
+ export class PaymentListener extends DurableObject < Env > {
9
9
private nanoWebsocket : NanoWebsocket ;
10
10
private pendingInvoices : { id : string ; expiresAt : string ; payAddress : string ; payments : Payment [ ] } [ ] = [ ] ;
11
11
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { isFalsyLike } from './utils';
8
8
/*
9
9
* Export our Durable Object classes here.
10
10
*/
11
- export { PaymentListenerDurable } from './durable/payment-listener-durable ' ;
11
+ export { PaymentListener } from './durable/payment-listener' ;
12
12
13
13
/*
14
14
* This is the main entry point for your Worker.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ interface Env {
15
15
RPC_URLS : string ;
16
16
WORKER_URLS : string ;
17
17
IS_LOCAL_MODE : string ;
18
- PAYMENT_LISTENER_DURABLE : DurableObjectNamespace < import ( " ./src/index" ) . PaymentListenerDurable > ;
18
+ PAYMENT_LISTENER_DURABLE : DurableObjectNamespace < import ( ' ./src/index' ) . PaymentListener > ;
19
19
PAYMENT_LISTENER_QUEUE : Queue ;
20
20
PAYMENT_RECEIVER_QUEUE : Queue ;
21
21
PAYMENT_WRITE_QUEUE : Queue ;
Original file line number Diff line number Diff line change @@ -88,10 +88,12 @@ logpush = true
88
88
89
89
[[durable_objects .bindings ]]
90
90
name = " PAYMENT_LISTENER_DURABLE"
91
- class_name = " PaymentListenerDurable "
91
+ class_name = " PaymentListener "
92
92
93
- # Durable Object migrations.
94
- # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
95
93
[[migrations ]]
96
94
tag = " v1"
97
- new_classes = [" PaymentListenerDurable" ]
95
+ new_classes = [" PaymentListenerDurable" ]
96
+
97
+ [[migrations ]]
98
+ tag = " v2"
99
+ renamed_classes = [{from = " PaymentListenerDurable" , to = " PaymentListener" }]
You can’t perform that action at this time.
0 commit comments