IO-3307 Resolve bill document for imgproxy.
This commit is contained in:
@@ -2846,6 +2846,26 @@ exports.GET_DOCUMENTS_BY_JOB = `
|
||||
}
|
||||
}
|
||||
}`;
|
||||
exports.GET_DOCUMENTS_BY_BILL = `
|
||||
query GET_DOCUMENTS_BY_BILL($billId: uuid!) {
|
||||
documents_aggregate(where: {billid: {_eq: $billId}}) {
|
||||
aggregate {
|
||||
sum {
|
||||
size
|
||||
}
|
||||
}
|
||||
}
|
||||
documents(order_by: {takenat: desc}, where: {billid: {_eq: $billId}}) {
|
||||
id
|
||||
name
|
||||
key
|
||||
type
|
||||
size
|
||||
takenat
|
||||
extension
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
exports.QUERY_TEMPORARY_DOCS = ` query QUERY_TEMPORARY_DOCS {
|
||||
documents(where: { jobid: { _is_null: true } }, order_by: { takenat: desc }) {
|
||||
|
||||
Reference in New Issue
Block a user