Capture Photo Info & Change Env Dynamically.
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user