Capture Photo Info & Change Env Dynamically.

This commit is contained in:
Patrick Fic
2021-05-20 09:36:16 -07:00
parent 48514e72a5
commit 5647a52ef0
10 changed files with 62 additions and 87 deletions

View File

@@ -12,10 +12,10 @@ import { RetryLink } from "@apollo/client/link/retry";
import { WebSocketLink } from "@apollo/client/link/ws";
import { getMainDefinition } from "@apollo/client/utilities";
import { auth } from "../firebase/firebase.utils";
import env from "../env";
const httpLink = new HttpLink({
// uri: "https://bodyshop-dev-db.herokuapp.com/v1/graphql",
uri: "https://db.imex.online/v1/graphql",
uri: env.uri,
});
const wsLink = new WebSocketLink({

View File

@@ -21,11 +21,12 @@ export const GET_DOCUMENTS_BY_JOB = gql`
}
}
}
documents(order_by: { updated_at: desc }) {
documents(order_by: { takenat: desc }) {
id
name
key
type
takenat
bill {
id
invoice_number

View File

@@ -212,7 +212,7 @@ export const GET_JOB_BY_PK = gql`
updated_at
created_by
}
documents(order_by: { created_at: desc }) {
documents(order_by: { takenat: desc }) {
id
name
key
@@ -303,7 +303,7 @@ export const QUERY_JOB_CARD_DETAILS = gql`
start
scheduledreturn
}
documents(limit: 3, order_by: { created_at: desc }) {
documents(limit: 3, order_by: { takenat: desc }) {
id
key
}
@@ -372,7 +372,7 @@ export const QUERY_TECH_JOB_DETAILS = gql`
created_at
}
updated_at
documents(order_by: { created_at: desc }) {
documents(order_by: { takenat: desc }) {
id
key
}