refactor(federation): update worker and janitor for generalized outbox columns
Replace dmChannelId/messageId column references with contextId/entityId/contextType in federationWorker outbox delivery, spread all payload fields (membership, ownership, group, friendship), add friend-context initial sync pass, and fix storageJanitor DM purge queries.
This commit is contained in:
@@ -515,12 +515,12 @@ export function cleanupSoftDeletedDmChannels(): number {
|
||||
|
||||
// Delete federation outbox entries
|
||||
tx.delete(schema.federationOutbox)
|
||||
.where(eq(schema.federationOutbox.dmChannelId, channel.id))
|
||||
.where(eq(schema.federationOutbox.contextId, channel.id))
|
||||
.run();
|
||||
|
||||
// Delete mutation log entries
|
||||
tx.delete(schema.federationMutationLog)
|
||||
.where(eq(schema.federationMutationLog.dmChannelId, channel.id))
|
||||
.where(eq(schema.federationMutationLog.contextId, channel.id))
|
||||
.run();
|
||||
|
||||
// Delete the channel itself
|
||||
|
||||
Reference in New Issue
Block a user