fix: resolve build errors in retry actions and package detail query

- Replace BigInt literal `1n` with `BigInt(1)` for ES target compatibility
- Add default matchedFileCount/matchedByContent to getPackageById return

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-24 16:40:14 +01:00
parent 5a3550fa10
commit 5506c7d91b
2 changed files with 4 additions and 2 deletions

View File

@@ -201,7 +201,7 @@ export async function retrySkippedPackageAction(
});
if (mapping) {
const targetId = skipped.sourceMessageId - 1n;
const targetId = skipped.sourceMessageId - BigInt(1);
// Only reset if the watermark is past this message
if (mapping.lastProcessedMessageId && mapping.lastProcessedMessageId >= skipped.sourceMessageId) {
@@ -260,7 +260,7 @@ export async function retryAllSkippedPackagesAction(
for (const item of skippedItems) {
const key = `${item.accountId}:${item.sourceChannelId}`;
const existing = channelResets.get(key);
const targetId = item.sourceMessageId - 1n;
const targetId = item.sourceMessageId - BigInt(1);
if (!existing) {
const topicResets = new Map<bigint, bigint>();