fix(federation): remove require('crypto') — already imported as ESM at top of file

This commit is contained in:
Jannis Braun
2026-03-26 04:22:08 +01:00
parent 960ca1c97f
commit 306e26a525
+1 -1
View File
@@ -506,7 +506,7 @@ export function runMigrations(db: Database.Database): void {
`).all() as { id: string; home_ids: string }[];
if (channelsNeedingPairId.length > 0) {
const crypto = require('crypto');
// crypto is already imported at the top of this file
const update = db.prepare('UPDATE dm_channels SET canonical_pair_id = ? WHERE id = ? AND canonical_pair_id IS NULL');
let backfilled = 0;