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:
parent
f7154988af
commit
e9c1ab2e94
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user