IO-710 Export Log page & insert actions on export
This commit is contained in:
@@ -86,11 +86,17 @@ export const INSERT_EXPORT_LOG = gql`
|
||||
|
||||
export const QUERY_EXPORT_LOG_PAGINATED = gql`
|
||||
query QUERY_ALL_EXPORTLOG_PAGINATED(
|
||||
$search: String
|
||||
$offset: Int
|
||||
$limit: Int
|
||||
$order: [exportlog_order_by!]
|
||||
) {
|
||||
exportlog(offset: $offset, limit: $limit, order_by: $order) {
|
||||
search_exportlog(
|
||||
offset: $offset
|
||||
limit: $limit
|
||||
order_by: $order
|
||||
args: { search: $search }
|
||||
) {
|
||||
id
|
||||
job {
|
||||
ro_number
|
||||
@@ -107,8 +113,9 @@ export const QUERY_EXPORT_LOG_PAGINATED = gql`
|
||||
successful
|
||||
message
|
||||
created_at
|
||||
useremail
|
||||
}
|
||||
exportlog_aggregate {
|
||||
search_exportlog_aggregate(args: { search: $search }) {
|
||||
aggregate {
|
||||
count(distinct: true)
|
||||
}
|
||||
|
||||
@@ -860,6 +860,8 @@ export const UPDATE_JOBS = gql`
|
||||
update_jobs(where: { id: { _in: $jobIds } }, _set: $fields) {
|
||||
returning {
|
||||
id
|
||||
date_exported
|
||||
status
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user