Remove the duplicate Cash transaction number check #88

Merged
eleith merged 1 commits from refactor/validated-transaction-index into main 2026-12-05 00:25:33 +00:00
2 changed files with 0 additions and 3 deletions

No files matched your search

-1
View File
@@ -387,7 +387,6 @@ it('reads date-ordered pages with native ties and exact account scope', async ()
});
const mismatchedAccount = { ...other, id: account.id };
await expect(readAccountActivityDetail(database, mismatchedAccount, 1)).rejects.toThrow();
await expect(readAccountActivityDetail(database, account, 0)).rejects.toThrow();
await expect(readCashRegisterPage(database, mismatchedAccount, 'asc', 0)).rejects.toThrow();
await database
.updateTable('prepared_register_rows')
-2
View File
@@ -314,8 +314,6 @@ export async function readAccountActivityDetail(
account: StoredAccount,
nativeIndex: number
): Promise<PreparedAccountRow | null> {
if (!Number.isSafeInteger(nativeIndex) || nativeIndex <= 0)
throw new Error('Invalid account transaction.');
await assertStoredAccount(database, account);
if (account.access === 'ambiguous') return null;
const record = await selectAccountRowsWithTransactions(database)