From 0fe672a054cf0b668c06f1f762948c89613ca4e9 Mon Sep 17 00:00:00 2001 From: seb Date: Fri, 16 Oct 2026 22:35:24 +0200 Subject: [PATCH] u --- src/db/ledger.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/db/ledger.js b/src/db/ledger.js index 80914c4..bc77c3e 100644 --- a/src/db/ledger.js +++ b/src/db/ledger.js @@ -1,20 +1,5 @@ import { getStore } from './store.js'; -/** - * Appends a new entry to the append-only ledger table. - * - * @param {number} googleAuthId - The id of the Google auth user. - * @param {object} input - Ledger payload. - * @param {number} input.manifestarticle_id - ID of the referenced manifest article. - * @param {string} input.transaction_type - Transaction type. - * @param {number} input.amount - Movement amount. - * @param {string} input.transaction_text - Transaction text / memo. - * @returns {Promise} The inserted ledger row. - */ -export async function add(googleAuthId, input) { - const store = await getStore(); - return store.ledger.add(googleAuthId, input); -} /** * Lists ledger entries for a specific manifest article line, optionally filtered by transaction type.