Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Dec 19, 2024
1 parent fbe26e2 commit fe62cff
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/aws/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .constants import S3_TEMP_BUCKET_NAME, STATIC_URL
from .exceptions import UploadError

REGIN_NAME = get_env_variable("AWS_REGION")
REGION_NAME = get_env_variable("AWS_REGION")
STATIC_SECRET_NAME = get_env_variable("STATIC_SECRET_NAME")
STATIC_KEYPAIR_ID = get_env_variable("STATIC_KEYPAIR_ID")

Expand Down
2 changes: 1 addition & 1 deletion server/core/service/user_llm_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from utils.rsa import decrypt_token, encrypt_token
from utils.sanitize_token import sanitize_token

REGIN_NAME = get_env_variable("AWS_REGION")
REGION_NAME = get_env_variable("AWS_REGION")
LLM_TOKEN_SECRET_NAME = get_env_variable("LLM_TOKEN_SECRET_NAME")
LLM_TOKEN_PUBLIC_NAME = get_env_variable("LLM_TOKEN_PUBLIC_NAME")

Expand Down
2 changes: 1 addition & 1 deletion server/github_app/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)
from petercat_utils import get_env_variable

REGIN_NAME = get_env_variable("AWS_REGION")
REGION_NAME = get_env_variable("AWS_REGION")
X_GITHUB_SECRET_NAME = get_env_variable("X_GITHUB_SECRET_NAME")
APP_ID = get_env_variable("X_GITHUB_APP_ID")

Expand Down
2 changes: 1 addition & 1 deletion server/github_app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

APP_ID = get_env_variable("X_GITHUB_APP_ID")
X_GITHUB_SECRET_NAME = get_env_variable("X_GITHUB_SECRET_NAME")
REGIN_NAME = get_env_variable("AWS_REGION")
REGION_NAME = get_env_variable("AWS_REGION")


def get_jwt():
Expand Down
4 changes: 2 additions & 2 deletions server/utils/private_key/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
from petercat_utils import get_env_variable
from utils.private_key.base import BasePrivateKeyProvider

REGIN_NAME = get_env_variable("AWS_REGION")
REGION_NAME = get_env_variable("AWS_REGION")


class S3PrivateKeyProvider(BasePrivateKeyProvider):
def get_private_key(self, secret_id: str) -> str:
session = boto3.session.Session()
client = session.client(service_name="secretsmanager", region_name=REGIN_NAME)
client = session.client(service_name="secretsmanager", region_name=REGION_NAME)
try:
get_secret_value_response = client.get_secret_value(SecretId=secret_id)
except ClientError as e:
Expand Down

0 comments on commit fe62cff

Please sign in to comment.