fixed all lint errors
This commit is contained in:
parent
519d24722e
commit
26d9b9ab3f
23 changed files with 63 additions and 43 deletions
|
|
@ -147,13 +147,13 @@ export function getLoggingConfig() {
|
|||
|
||||
// Deprecated - provider configs should be app-specific
|
||||
// @deprecated Move provider configs to your app-specific config
|
||||
export function getProviderConfig(provider: string) {
|
||||
export function getProviderConfig(_provider: string) {
|
||||
const config = getConfig() as any;
|
||||
const providers = config.providers;
|
||||
if (!providers || !(provider in providers)) {
|
||||
throw new Error(`Provider configuration not found: ${provider}`);
|
||||
if (!providers || !(_provider in providers)) {
|
||||
throw new Error(`Provider configuration not found: ${_provider}`);
|
||||
}
|
||||
return (providers as Record<string, unknown>)[provider];
|
||||
return (providers as Record<string, unknown>)[_provider];
|
||||
}
|
||||
|
||||
export function getQueueConfig() {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { z } from 'zod';
|
||||
import { baseConfigSchema, environmentSchema } from './base.schema';
|
||||
import { environmentSchema } from './base.schema';
|
||||
import {
|
||||
postgresConfigSchema,
|
||||
mongodbConfigSchema,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue