mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:20:42 +00:00
fix(qa): timestamp telegram update batches
This commit is contained in:
@@ -595,6 +595,7 @@ async function waitForObservedMessage(params: {
|
||||
},
|
||||
timeoutSeconds * 1000 + 5_000,
|
||||
);
|
||||
const batchObservedAtMs = Date.now();
|
||||
if (updates.length === 0) {
|
||||
continue;
|
||||
}
|
||||
@@ -613,7 +614,7 @@ async function waitForObservedMessage(params: {
|
||||
};
|
||||
params.observedMessages.push(observedMessage);
|
||||
if (matchedScenario) {
|
||||
return { message: observedMessage, nextOffset: offset, observedAtMs: Date.now() };
|
||||
return { message: observedMessage, nextOffset: offset, observedAtMs: batchObservedAtMs };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user