refactor(pairing): share allowFrom path resolution

This commit is contained in:
Peter Steinberger
2026-03-08 02:06:03 +00:00
parent e7056272bc
commit 01cff3a7a6
2 changed files with 14 additions and 4 deletions

View File

@@ -104,6 +104,14 @@ function resolveAllowFromPath(
);
}
export function resolveChannelAllowFromPath(
channel: PairingChannel,
env: NodeJS.ProcessEnv = process.env,
accountId?: string,
): string {
return resolveAllowFromPath(channel, env, accountId);
}
async function readJsonFile<T>(
filePath: string,
fallback: T,