* 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`
17 lines
307 B
JavaScript
17 lines
307 B
JavaScript
import { gql } from 'graphql-tag'
|
|
|
|
export default gql`
|
|
type ImageFeesInfo {
|
|
totalFees: Int!
|
|
totalFeesMsats: Int!
|
|
imageFee: Int!
|
|
imageFeeMsats: Int!
|
|
nUnpaid: Int!
|
|
bytesUnpaid: Int!
|
|
bytes24h: Int!
|
|
}
|
|
extend type Query {
|
|
imageFeesInfo(s3Keys: [Int]!): ImageFeesInfo!
|
|
}
|
|
`
|