mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-16 12:30:49 +00:00
fix(feishu): simplify eventDedup key — drop redundant accountId prefix
eventDedup is already scoped per account (one instance per
registerEventHandlers call), so the accountId prefix in the cache key
is redundant. Use `evt:${messageId}` instead.
This commit is contained in:
@@ -401,7 +401,7 @@ function registerEventHandlers(
|
||||
const event = data as unknown as FeishuMessageEvent;
|
||||
const messageId = event.message?.message_id?.trim();
|
||||
if (messageId) {
|
||||
const eventKey = `${accountId}:evt:${messageId}`;
|
||||
const eventKey = `evt:${messageId}`;
|
||||
if (eventDedup.check(eventKey)) {
|
||||
log(`feishu[${accountId}]: dropping duplicate event for message ${messageId}`);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user