summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-22 16:41:48 -0500
committerDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-22 16:41:48 -0500
commit41317582fb084b240f0bbb5e978ee7f976dd5fdc (patch)
tree2a9d01034e3410caed673bb74c1b6efb7bf06a6b /src/util
parentConfig: New config and store classes to replace the mongo method (diff)
downloadserver-41317582fb084b240f0bbb5e978ee7f976dd5fdc.tar.xz
Config: export getConfigPathForFile
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Config.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/Config.ts b/src/util/Config.ts
index c3f7b848..7d69fb45 100644
--- a/src/util/Config.ts
+++ b/src/util/Config.ts
@@ -13,7 +13,7 @@ interface Options<T> {
 
 type Deserialize<T> = (text: string) => T;
 
-function getConfigPath(name: string, configFileName: string, extension: string): string {
+export function getConfigPathForFile(name: string, configFileName: string, extension: string): string {
 	const configEnvPath = envPaths(name, { suffix: "" }).config;
 	const configPath = path.resolve(configEnvPath, `${configFileName}${extension}`)
 	return configPath