Skip to content

Commit

Permalink
removed inconsistenceis
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Nov 27, 2024
1 parent d48373f commit 8533c62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/cli/src/commands/secret/rollback.secret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class RollbackSecret extends BaseCommand {
await ControllerInstance.getInstance().secretController.rollbackSecret(
{
environmentSlug,
version: Number(version),
version,
secretSlug
},
this.headers
Expand All @@ -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)
}
}
}
2 changes: 1 addition & 1 deletion packages/api-client/tests/environment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('Environments Controller Tests', () => {
const createEnvironmentResponse = (
await environmentController.createEnvironment(
{
projectSlug: projectSlug,
projectSlug,
name: 'Prod'
},
{
Expand Down

0 comments on commit 8533c62

Please sign in to comment.