mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 00:05:31 +00:00
refactor(pairing): share allowFrom path resolution
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user