mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:20:43 +00:00
fix(channels): preserve account status generic
This commit is contained in:
@@ -83,8 +83,8 @@ export async function buildChannelAccountSnapshot<ResolvedAccount>(params: {
|
||||
audit?: unknown;
|
||||
}): Promise<ChannelAccountSnapshot> {
|
||||
const inspectedAccount = await inspectChannelAccount(params);
|
||||
const account =
|
||||
inspectedAccount ?? params.plugin.config.resolveAccount(params.cfg, params.accountId);
|
||||
const account = (inspectedAccount ??
|
||||
params.plugin.config.resolveAccount(params.cfg, params.accountId)) as ResolvedAccount;
|
||||
return await buildChannelAccountSnapshotFromAccount({
|
||||
...params,
|
||||
account,
|
||||
|
||||
Reference in New Issue
Block a user