8 Commits

Author SHA1 Message Date
ekzyis
fe267cd3b9 Calculate image fee info in postgres function
* we now calculate image fee info in a postgres function which is much cleaner
* we use this function inside `create_item` and `update_item`: image fees are now deducted in the same transaction as creating/updating the item!
* reversed changes in `serializeInvoiceable`
2023-11-02 01:48:34 +01:00
ekzyis
6b840258c0 Fix NULL returned for size24h, sizeNow 2023-11-02 01:48:34 +01:00
ekzyis
30a413e494 Fix multiplication with feesPerImage 2023-11-02 01:48:34 +01:00
ekzyis
d8511ba6d2 Fix bad image fee return statements 2023-11-02 01:48:34 +01:00
ekzyis
cb56ee8b58 Fix free upload quota 2023-11-02 01:48:34 +01:00
ekzyis
b71f320b59 Fix fees in sats deducted from msats 2023-11-02 01:48:34 +01:00
ekzyis
28bde328fc Show amount of unpaid images in receipt 2023-11-02 01:48:34 +01:00
ekzyis
221dd5bb1d Show image fees in frontend 2023-11-02 01:48:34 +01:00