Format: fix report + telegram formatting

This commit is contained in:
George Pickett
2026-01-14 17:24:00 -08:00
committed by Peter Steinberger
parent 232c512502
commit 393d21d86c
4 changed files with 19 additions and 33 deletions

View File

@@ -54,11 +54,7 @@ export function migrateTelegramGroupConfig(params: {
const accountGroups = resolveAccountGroups(params.cfg, params.accountId).groups;
if (accountGroups) {
const result = migrateTelegramGroupsInPlace(
accountGroups,
params.oldChatId,
params.newChatId,
);
const result = migrateTelegramGroupsInPlace(accountGroups, params.oldChatId, params.newChatId);
if (result.migrated) {
migrated = true;
scopes.push("account");
@@ -68,11 +64,7 @@ export function migrateTelegramGroupConfig(params: {
const globalGroups = params.cfg.channels?.telegram?.groups;
if (globalGroups) {
const result = migrateTelegramGroupsInPlace(
globalGroups,
params.oldChatId,
params.newChatId,
);
const result = migrateTelegramGroupsInPlace(globalGroups, params.oldChatId, params.newChatId);
if (result.migrated) {
migrated = true;
scopes.push("global");