mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-10 22:01:16 +00:00
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:
@@ -201,7 +201,7 @@ export async function retrySkippedPackageAction(
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (mapping) {
|
if (mapping) {
|
||||||
const targetId = skipped.sourceMessageId - 1n;
|
const targetId = skipped.sourceMessageId - BigInt(1);
|
||||||
|
|
||||||
// Only reset if the watermark is past this message
|
// Only reset if the watermark is past this message
|
||||||
if (mapping.lastProcessedMessageId && mapping.lastProcessedMessageId >= skipped.sourceMessageId) {
|
if (mapping.lastProcessedMessageId && mapping.lastProcessedMessageId >= skipped.sourceMessageId) {
|
||||||
@@ -260,7 +260,7 @@ export async function retryAllSkippedPackagesAction(
|
|||||||
for (const item of skippedItems) {
|
for (const item of skippedItems) {
|
||||||
const key = `${item.accountId}:${item.sourceChannelId}`;
|
const key = `${item.accountId}:${item.sourceChannelId}`;
|
||||||
const existing = channelResets.get(key);
|
const existing = channelResets.get(key);
|
||||||
const targetId = item.sourceMessageId - 1n;
|
const targetId = item.sourceMessageId - BigInt(1);
|
||||||
|
|
||||||
if (!existing) {
|
if (!existing) {
|
||||||
const topicResets = new Map<bigint, bigint>();
|
const topicResets = new Map<bigint, bigint>();
|
||||||
|
|||||||
@@ -109,6 +109,8 @@ export async function getPackageById(
|
|||||||
partCount: pkg.partCount,
|
partCount: pkg.partCount,
|
||||||
indexedAt: pkg.indexedAt.toISOString(),
|
indexedAt: pkg.indexedAt.toISOString(),
|
||||||
sourceChannel: pkg.sourceChannel,
|
sourceChannel: pkg.sourceChannel,
|
||||||
|
matchedFileCount: 0,
|
||||||
|
matchedByContent: false,
|
||||||
destChannel,
|
destChannel,
|
||||||
destMessageId: pkg.destMessageId?.toString() ?? null,
|
destMessageId: pkg.destMessageId?.toString() ?? null,
|
||||||
sourceMessageId: pkg.sourceMessageId.toString(),
|
sourceMessageId: pkg.sourceMessageId.toString(),
|
||||||
|
|||||||
Reference in New Issue
Block a user