Skip to content

Update balance-service.ts#1

Open
syed-ghufran-hassan wants to merge 1 commit into
taisprestes01:mainfrom
syed-ghufran-hassan:patch-1
Open

Update balance-service.ts#1
syed-ghufran-hassan wants to merge 1 commit into
taisprestes01:mainfrom
syed-ghufran-hassan:patch-1

Conversation

@syed-ghufran-hassan

Copy link
Copy Markdown
  • A utility function validateApiKeys is added to check if apiKeyPublic and apiKeyPrivate are set.
  • Throws an error with the message "Invalid API credentials: Public or Private key is missing." if either key is missing.
  • Catches the error thrown by validateApiKeys and sends a 500 status response with the error message.

- A utility function validateApiKeys is added to check if apiKeyPublic and apiKeyPrivate are set.
- Throws an error with the message "Invalid API credentials: Public or Private key is missing." if either key is missing.
- Catches the error thrown by validateApiKeys and sends a 500 status response with the error message.
@vercel

vercel Bot commented Jan 21, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tradeogre-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 11:20am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant