File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module.exports = {
5
5
port : process . env . DB_PORT ?? 5432 ,
6
6
user : process . env . DB_USER ?? 'postgres' ,
7
7
password : process . env . DB_PASSWORD ?? 'postgres' ,
8
- database : process . env . DB_NAME ?? 'nostr-ts-relay ' ,
8
+ database : process . env . DB_NAME ?? 'nostream ' ,
9
9
} ,
10
10
seeds : {
11
11
directory : './seeds' ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ payments:
10
10
feeSchedules :
11
11
admission :
12
12
- enabled : false
13
- descripton : Admission fee charged per public key in msats (1000 msats = 1 satoshi)
13
+ description : Admission fee charged per public key in msats (1000 msats = 1 satoshi)
14
14
amount : 1000000
15
15
whitelists :
16
16
pubkeys :
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class ZebedeeCallbackController implements IController {
26
26
debug ( 'invoice' , invoice )
27
27
28
28
try {
29
- if ( ! invoice . bolt11 ) {
29
+ if ( invoice . bolt11 ) {
30
30
await this . paymentsService . updateInvoice ( invoice )
31
31
}
32
32
} catch ( error ) {
Original file line number Diff line number Diff line change @@ -124,9 +124,9 @@ export class PostInvoiceController implements IController {
124
124
return
125
125
}
126
126
127
- const minBalance = currentSettings . limits ?. event ?. pubkey ?. minBalance ?? 0n
127
+ const minBalance = currentSettings . limits ?. event ?. pubkey ?. minBalance
128
128
const user = await this . userRepository . findByPubkey ( pubkey )
129
- if ( user && user . isAdmitted && minBalance > 0n && user . balance >= minBalance ) {
129
+ if ( user && user . isAdmitted && ( ! minBalance || user . balance >= minBalance ) ) {
130
130
response
131
131
. status ( 400 )
132
132
. setHeader ( 'content-type' , 'text/plain; charset=utf8' )
You can’t perform that action at this time.
0 commit comments