fix(channels): preserve account status generic

This commit is contained in:
Peter Steinberger
2026-04-29 16:30:03 +01:00
parent 4dd2768c4b
commit e49703def6

View File

@@ -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,