Files
pearcord-platform/mixins/json-export/webhook-json-mixin.js
T
Raven ScottandCursor 66160bbc53 Improve guild member roster sync and mesh recovery reliability.
Queue member join and sync-request gossip through the outbox, infer members from mesh peers and profiles, add host-initiated identify handshake, and harden partition heal plus mesh bounded clearing.

Co-authored-by: Cursor <[email protected]>
2026-06-03 20:28:00 -04:00

28 lines
1008 B
JavaScript

'use strict'
const { createJsonExportMeshMixin } = require('pearcord-json-export-mixin')
const webhookExecuteJsonMixin = createJsonExportMeshMixin({
keysField: '_webhookExecuteRegistryJsonGossipKeys',
watermarkField: '_webhookExecuteJsonHealWatermark',
initMethod: '_initWebhookExecuteJsonMixinState',
shouldGossipMethod: '_shouldGossipWebhookExecuteExportJson',
healMethod: '_healWebhookExecuteJsonExportCursorOnPartition',
spanKind: 'webhook.json',
healContext: 'heal.webhook',
countField: 'guildWebhookExecuteJsonCount',
bridgeKind: 'webhook.json',
listExportsMethod: 'listWebhookExecuteExportJsonExports',
extraSpanEnd: (rows) => ({
webhookCount: rows[0]?.webhookCount || 0
}),
})
webhookExecuteJsonMixin._healWebhookJsonExportCursorOnPartition = function _healWebhookJsonExportCursorOnPartition (
guildId
) {
return this._healWebhookExecuteJsonExportCursorOnPartition(guildId)
}
module.exports = { webhookExecuteJsonMixin, webhookJsonMixin: webhookExecuteJsonMixin }