Skip to content

Commit

Permalink
Update convert.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvikns committed Sep 13, 2023
1 parent 11ebcd1 commit 2c5d1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { ConvertVersion } from '@asyncapi/converter';
// @ts-ignore
import specs from '@asyncapi/specs';

const latestVersion = Object.keys(specs).pop() as string;
const latestVersion = Object.keys(specs.schemas).pop() as string;

export default class Convert extends Command {
static description = 'Convert asyncapi documents older to newer versions';
Expand Down

0 comments on commit 2c5d1a1

Please sign in to comment.