mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 18:24:35 +00:00
refactor(gateway): reuse shared validators + baseHash
This commit is contained in:
8
src/gateway/server-methods/base-hash.ts
Normal file
8
src/gateway/server-methods/base-hash.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export function resolveBaseHashParam(params: unknown): string | null {
|
||||
const raw = (params as { baseHash?: unknown })?.baseHash;
|
||||
if (typeof raw !== "string") {
|
||||
return null;
|
||||
}
|
||||
const trimmed = raw.trim();
|
||||
return trimmed ? trimmed : null;
|
||||
}
|
||||
Reference in New Issue
Block a user