diff --git a/apps/cli/src/commands/secret/rollback.secret.ts b/apps/cli/src/commands/secret/rollback.secret.ts index 2282c800..db44d4d1 100644 --- a/apps/cli/src/commands/secret/rollback.secret.ts +++ b/apps/cli/src/commands/secret/rollback.secret.ts @@ -48,7 +48,7 @@ export default class RollbackSecret extends BaseCommand { await ControllerInstance.getInstance().secretController.rollbackSecret( { environmentSlug, - version: Number(version), + version, secretSlug }, this.headers @@ -63,13 +63,13 @@ export default class RollbackSecret extends BaseCommand { private async parseInput(options: CommandActionData['options']): Promise<{ environmentSlug: string - version: string + version: number }> { const { environmentSlug, version } = options return { environmentSlug, - version + version: parseInt(version, 10) } } } diff --git a/packages/api-client/tests/environment.spec.ts b/packages/api-client/tests/environment.spec.ts index 19f003fb..108d8c6e 100644 --- a/packages/api-client/tests/environment.spec.ts +++ b/packages/api-client/tests/environment.spec.ts @@ -128,7 +128,7 @@ describe('Environments Controller Tests', () => { const createEnvironmentResponse = ( await environmentController.createEnvironment( { - projectSlug: projectSlug, + projectSlug, name: 'Prod' }, {