IO-134 Limit shop uploads based on plan.
This commit is contained in:
@@ -81,6 +81,7 @@ export const QUERY_BODYSHOP = gql`
|
||||
md_payment_types
|
||||
md_hour_split
|
||||
sub_status
|
||||
jobsizelimit
|
||||
employees {
|
||||
id
|
||||
first_name
|
||||
@@ -160,6 +161,7 @@ export const UPDATE_SHOP = gql`
|
||||
md_payment_types
|
||||
md_hour_split
|
||||
sub_status
|
||||
jobsizelimit
|
||||
employees {
|
||||
id
|
||||
first_name
|
||||
|
||||
@@ -2,15 +2,18 @@ import { gql } from "@apollo/client";
|
||||
|
||||
export const GET_DOCUMENTS_BY_JOB = gql`
|
||||
query GET_DOCUMENTS_BY_JOB($jobId: uuid!) {
|
||||
documents(
|
||||
where: { jobid: { _eq: $jobId } }
|
||||
order_by: { updated_at: desc }
|
||||
) {
|
||||
documents_aggregate(where: { jobid: { _eq: $jobId } }) {
|
||||
aggregate {
|
||||
sum {
|
||||
size
|
||||
}
|
||||
}
|
||||
}
|
||||
documents(order_by: { updated_at: desc }) {
|
||||
id
|
||||
name
|
||||
key
|
||||
type
|
||||
extension
|
||||
bill {
|
||||
id
|
||||
invoice_number
|
||||
|
||||
Reference in New Issue
Block a user