mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(core): Upgrade oclif (no-changelog) (#8381)
This commit is contained in:
committed by
GitHub
parent
2c146cca62
commit
913c8c6b0c
@@ -1,7 +1,7 @@
|
||||
import { flags } from '@oclif/command';
|
||||
import { BaseCommand } from '../BaseCommand';
|
||||
import Container from 'typedi';
|
||||
import { Flags } from '@oclif/core';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { BaseCommand } from '../BaseCommand';
|
||||
|
||||
export class DisableMFACommand extends BaseCommand {
|
||||
static description = 'Disable MFA authentication for a user';
|
||||
@@ -9,8 +9,8 @@ export class DisableMFACommand extends BaseCommand {
|
||||
static examples = ['$ n8n mfa:disable --email=johndoe@example.com'];
|
||||
|
||||
static flags = {
|
||||
help: flags.help({ char: 'h' }),
|
||||
email: flags.string({
|
||||
help: Flags.help({ char: 'h' }),
|
||||
email: Flags.string({
|
||||
description: 'The email of the user to disable the MFA authentication',
|
||||
}),
|
||||
};
|
||||
@@ -20,8 +20,7 @@ export class DisableMFACommand extends BaseCommand {
|
||||
}
|
||||
|
||||
async run(): Promise<void> {
|
||||
// eslint-disable-next-line @typescript-eslint/no-shadow
|
||||
const { flags } = this.parse(DisableMFACommand);
|
||||
const { flags } = await this.parse(DisableMFACommand);
|
||||
|
||||
if (!flags.email) {
|
||||
this.logger.info('An email with --email must be provided');
|
||||
|
||||
Reference in New Issue
Block a user