- Add comprehensive database migrations (001-024) for schema evolution - Enhance API schema with expanded type definitions and resolvers - Add new middleware: audit logging, rate limiting, MFA enforcement, security, tenant auth - Implement new services: AI optimization, billing, blockchain, compliance, marketplace - Add adapter layer for cloud integrations (Cloudflare, Kubernetes, Proxmox, storage) - Update Crossplane provider with enhanced VM management capabilities - Add comprehensive test suite for API endpoints and services - Update frontend components with improved GraphQL subscriptions and real-time updates - Enhance security configurations and headers (CSP, CORS, etc.) - Update documentation and configuration files - Add new CI/CD workflows and validation scripts - Implement design system improvements and UI enhancements
21 lines
417 B
TypeScript
21 lines
417 B
TypeScript
/**
|
|
* ISO-4217 Currency Service
|
|
*/
|
|
|
|
import { getDb } from '../db/index.js'
|
|
import { logger } from '../lib/logger.js'
|
|
|
|
export class CurrencyService {
|
|
async getCurrencyMetadata(code: string) {
|
|
const db = getDb()
|
|
const result = await db.query(
|
|
`SELECT * FROM currencies WHERE code = $1`,
|
|
[code]
|
|
)
|
|
return result.rows[0] || null
|
|
}
|
|
}
|
|
|
|
export const currencyService = new CurrencyService()
|
|
|