File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -270,9 +270,7 @@ db.junk_name = function () {
270
270
} ;
271
271
db . make_junk_wallet = async function ( ) {
272
272
let wallet_name = await db . junk_name ( ) ;
273
- await db . user_create ( wallet_name ) . catch ( function ( error ) {
274
- console . error ( 'ERROR: ' , error ) ;
275
- } ) ;
273
+ await db . user_create ( wallet_name ) ;
276
274
console . info ( `[ok]: user "${ wallet_name } " created` ) ;
277
275
await db . run ( [
278
276
'createwallet' ,
@@ -519,6 +517,9 @@ Bootstrap.alias_users = async function () {
519
517
Bootstrap . alias_check = function ( user ) {
520
518
if ( user === 'junk' ) {
521
519
user = Bootstrap . get_junk_username ( ) ;
520
+ if ( ! user ) {
521
+ return 'junk' ;
522
+ }
522
523
}
523
524
if ( xt ( user , 'clazz' ) === 'ClientSession' ) {
524
525
user = user . username ;
You can’t perform that action at this time.
0 commit comments