Skip to content

Commit

Permalink
Minute Changes in Names and Initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
vr-varad authored and rajdip-b committed Jul 29, 2024
1 parent c3b64f8 commit 8d52834
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions apps/cli/src/http/auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Logger } from '@/util/logger'

class AuthControllerClass {
class AuthController {
static async checkApiKeyValidity(baseUrl: string, apiKey: string): Promise<void> {
Logger.info('Checking API key validity...')
const response = await fetch(`${baseUrl}/api/api-key/access/live-updates`, {
Expand All @@ -19,6 +19,5 @@ class AuthControllerClass {
}
}

const AuthController = new AuthControllerClass();

export default AuthController
3 changes: 1 addition & 2 deletions apps/cli/src/http/secret.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Configuration } from '@/types/command/run.types'

class SecretControllerClass {
class SecretController {
static async fetchSecrets(
baseUrl: string,
apiKey: string,
Expand All @@ -25,6 +25,5 @@ class SecretControllerClass {
}
}

const SecretController = new SecretControllerClass();

export default SecretController
4 changes: 1 addition & 3 deletions apps/cli/src/http/variable.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Configuration } from '@/types/command/run.types'

class VariableControllerClass{
class VariableController{
static async fetchVariables(
baseUrl: string,
apiKey: string,
Expand All @@ -25,6 +25,4 @@ class VariableControllerClass{
}
}

const VariableController = new VariableControllerClass();

export default VariableController

0 comments on commit 8d52834

Please sign in to comment.