mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-21 18:04:10 -05:00
Fix running presence server with default user
This commit is contained in:
parent
c90a36d8d5
commit
7f4b190465
|
|
@ -46,8 +46,8 @@ export function builder(yargs: Argv<ParentArguments>) {
|
|||
default: ['[::]:0'],
|
||||
}).option('user', {
|
||||
describe: 'Nintendo Account ID',
|
||||
type: 'array',
|
||||
default: null,
|
||||
type: 'string',
|
||||
array: true,
|
||||
}).option('splatnet3', {
|
||||
describe: 'Enable SplatNet 3 presence',
|
||||
type: 'boolean',
|
||||
|
|
@ -77,6 +77,8 @@ export async function handler(argv: ArgumentsCamelCase<Arguments>) {
|
|||
const user_naid: string | undefined = !argv.user ? await storage.getItem('SelectedUser') : undefined;
|
||||
const user_naids = argv.user ?? (user_naid ? [user_naid] : []);
|
||||
|
||||
debug('user', user_naids);
|
||||
|
||||
if (!user_naids.length) {
|
||||
throw new Error('No user selected');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user