@@ -22,9 +22,9 @@ const findTransactionTags = (err) => pipe(
22
22
defaultTo ( [ ] )
23
23
)
24
24
25
- function gatewayWith ( { fetch, GATEWAY_URL } ) {
25
+ function gatewayWith ( { fetch, GRAPHQL_URL } ) {
26
26
return async ( { query, variables } ) => {
27
- return fetch ( ` ${ GATEWAY_URL } /graphql` , {
27
+ return fetch ( GRAPHQL_URL , {
28
28
method : 'POST' ,
29
29
headers : { 'Content-Type' : 'application/json' } ,
30
30
body : JSON . stringify ( { query, variables } )
@@ -33,9 +33,9 @@ function gatewayWith ({ fetch, GATEWAY_URL }) {
33
33
}
34
34
}
35
35
36
- export function loadProcessSchedulerWith ( { fetch, GATEWAY_URL } ) {
37
- const gateway = gatewayWith ( { fetch, GATEWAY_URL } )
38
- const loadScheduler = loadSchedulerWith ( { fetch, GATEWAY_URL } )
36
+ export function loadProcessSchedulerWith ( { fetch, GRAPHQL_URL } ) {
37
+ const gateway = gatewayWith ( { fetch, GRAPHQL_URL } )
38
+ const loadScheduler = loadSchedulerWith ( { fetch, GRAPHQL_URL } )
39
39
40
40
const GET_TRANSACTIONS_QUERY = `
41
41
query GetTransactions ($transactionIds: [ID!]!) {
@@ -55,7 +55,7 @@ export function loadProcessSchedulerWith ({ fetch, GATEWAY_URL }) {
55
55
return async ( process ) => {
56
56
return gateway ( { query : GET_TRANSACTIONS_QUERY , variables : { transactionIds : [ process ] } } )
57
57
. then ( path ( [ 'data' , 'transactions' , 'edges' , '0' , 'node' ] ) )
58
- . then ( findTransactionTags ( `Process ${ process } was not found on gateway ${ GATEWAY_URL } ` ) )
58
+ . then ( findTransactionTags ( `Process ${ process } was not found on gateway` ) )
59
59
. then ( findTagValue ( SCHEDULER_TAG ) )
60
60
. then ( ( walletAddress ) => {
61
61
if ( ! walletAddress ) throw new SchedulerTagNotFoundError ( 'No "Scheduler" tag found on process' )
@@ -64,8 +64,8 @@ export function loadProcessSchedulerWith ({ fetch, GATEWAY_URL }) {
64
64
}
65
65
}
66
66
67
- export function loadSchedulerWith ( { fetch, GATEWAY_URL } ) {
68
- const gateway = gatewayWith ( { fetch, GATEWAY_URL } )
67
+ export function loadSchedulerWith ( { fetch, GRAPHQL_URL } ) {
68
+ const gateway = gatewayWith ( { fetch, GRAPHQL_URL } )
69
69
70
70
const GET_SCHEDULER_LOCATION = `
71
71
query GetSchedulerLocation ($owner: String!) {
0 commit comments