@@ -708,10 +708,7 @@ export class MainStore {
708
708
search : uiStore . searchText ?? ''
709
709
} ;
710
710
711
- const query2 = makeQueryParams (
712
- queryLimit ,
713
- params ? queryParams : this . getWantedsPrevParams
714
- ) ;
711
+ const query2 = makeQueryParams ( queryLimit , params ? queryParams : this . getWantedsPrevParams ) ;
715
712
716
713
try {
717
714
const ps2 = await api . get ( `gobounties/all?${ query2 } ` ) ;
@@ -790,24 +787,24 @@ export class MainStore {
790
787
}
791
788
792
789
// if we don't pass the params, we should use previous params for invalidate query
793
- const query2 = makeQueryParams (
794
- queryLimit ,
795
- queryParams
796
- ) ;
790
+ const query2 = makeQueryParams ( queryLimit , queryParams ) ;
797
791
798
792
try {
799
793
if ( ! uiStore . meInfo ) return 0 ;
800
794
const info = uiStore . meInfo ;
801
795
802
- const response = await fetch ( `${ TribesURL } /features/${ feature_uuid } /phase/${ phase_uuid } /bounty?${ query2 } ` , {
803
- method : 'GET' ,
804
- mode : 'cors' ,
805
- headers : {
806
- 'x-jwt' : info . tribe_jwt ,
807
- 'Content-Type' : 'application/json' ,
808
- 'x-session-id' : this . getSessionId ( )
796
+ const response = await fetch (
797
+ `${ TribesURL } /features/${ feature_uuid } /phase/${ phase_uuid } /bounty?${ query2 } ` ,
798
+ {
799
+ method : 'GET' ,
800
+ mode : 'cors' ,
801
+ headers : {
802
+ 'x-jwt' : info . tribe_jwt ,
803
+ 'Content-Type' : 'application/json' ,
804
+ 'x-session-id' : this . getSessionId ( )
805
+ }
809
806
}
810
- } ) ;
807
+ ) ;
811
808
812
809
if ( ! response . ok ) {
813
810
console . log ( 'fetch failed getPhaseBounties: ' , response . statusText ) ;
@@ -874,15 +871,18 @@ export class MainStore {
874
871
if ( ! uiStore . meInfo ) return 0 ;
875
872
const info = uiStore . meInfo ;
876
873
877
- const response = await fetch ( `${ TribesURL } /features/${ feature_uuid } /phase/${ phase_uuid } /bounty/count?Open=${ open } &Assigned=${ assigned } &Paid=${ paid } ` , {
878
- method : 'GET' ,
879
- mode : 'cors' ,
880
- headers : {
881
- 'x-jwt' : info . tribe_jwt ,
882
- 'Content-Type' : 'application/json' ,
883
- 'x-session-id' : this . getSessionId ( )
874
+ const response = await fetch (
875
+ `${ TribesURL } /features/${ feature_uuid } /phase/${ phase_uuid } /bounty/count?Open=${ open } &Assigned=${ assigned } &Paid=${ paid } ` ,
876
+ {
877
+ method : 'GET' ,
878
+ mode : 'cors' ,
879
+ headers : {
880
+ 'x-jwt' : info . tribe_jwt ,
881
+ 'Content-Type' : 'application/json' ,
882
+ 'x-session-id' : this . getSessionId ( )
883
+ }
884
884
}
885
- } ) ;
885
+ ) ;
886
886
887
887
if ( ! response . ok ) {
888
888
console . log ( 'fetch failed getTotalPhaseBountyCount: ' , response . statusText ) ;
@@ -1272,10 +1272,7 @@ export class MainStore {
1272
1272
} ;
1273
1273
1274
1274
// if we don't pass the params, we should use previous params for invalidate query
1275
- const query2 = makeQueryParams (
1276
- orgQuerLimit ,
1277
- params ? queryParams : undefined ,
1278
- ) ;
1275
+ const query2 = makeQueryParams ( orgQuerLimit , params ? queryParams : undefined ) ;
1279
1276
try {
1280
1277
const ps2 = await api . get ( `workspaces/bounties/${ uuid } ?${ query2 } ` ) ;
1281
1278
const ps3 : any [ ] = [ ] ;
@@ -1988,8 +1985,7 @@ export class MainStore {
1988
1985
async getWorkspaceNextBountyByCreated ( org_uuid : string , created : number ) : Promise < number > {
1989
1986
try {
1990
1987
const workspaceBountiesStatus =
1991
- JSON . parse ( localStorage . getItem ( 'workspaceBountyStatus' ) || `{}` ) ||
1992
- defaultBountyStatus ;
1988
+ JSON . parse ( localStorage . getItem ( 'workspaceBountyStatus' ) || `{}` ) || defaultBountyStatus ;
1993
1989
const params = { languages : this . bountyLanguages , ...workspaceBountiesStatus } ;
1994
1990
1995
1991
const queryParams : QueryParams = {
@@ -2002,10 +1998,7 @@ export class MainStore {
2002
1998
} ;
2003
1999
2004
2000
// if we don't pass the params, we should use previous params for invalidate query
2005
- const query = makeQueryParams (
2006
- queryLimit ,
2007
- queryParams
2008
- ) ;
2001
+ const query = makeQueryParams ( queryLimit , queryParams ) ;
2009
2002
2010
2003
const bounty = await api . get ( `gobounties/workspace/next/${ org_uuid } /${ created } ?${ query } ` ) ;
2011
2004
return bounty ;
@@ -2018,8 +2011,7 @@ export class MainStore {
2018
2011
async getWorkspacePreviousBountyByCreated ( org_uuid : string , created : number ) : Promise < number > {
2019
2012
try {
2020
2013
const workspaceBountiesStatus =
2021
- JSON . parse ( localStorage . getItem ( 'workspaceBountyStatus' ) || `{}` ) ||
2022
- defaultBountyStatus ;
2014
+ JSON . parse ( localStorage . getItem ( 'workspaceBountyStatus' ) || `{}` ) || defaultBountyStatus ;
2023
2015
const params = { languages : this . bountyLanguages , ...workspaceBountiesStatus } ;
2024
2016
2025
2017
const queryParams : QueryParams = {
@@ -2032,10 +2024,7 @@ export class MainStore {
2032
2024
} ;
2033
2025
2034
2026
// if we don't pass the params, we should use previous params for invalidate query
2035
- const query = makeQueryParams (
2036
- queryLimit ,
2037
- queryParams
2038
- ) ;
2027
+ const query = makeQueryParams ( queryLimit , queryParams ) ;
2039
2028
2040
2029
const bounty = await api . get ( `gobounties/workspace/previous/${ org_uuid } /${ created } ?${ query } ` ) ;
2041
2030
return bounty ;
@@ -2083,10 +2072,7 @@ export class MainStore {
2083
2072
} ;
2084
2073
2085
2074
// if we don't pass the params, we should use previous params for invalidate query
2086
- const query = makeQueryParams (
2087
- queryLimit ,
2088
- queryParams
2089
- ) ;
2075
+ const query = makeQueryParams ( queryLimit , queryParams ) ;
2090
2076
const bounty = await api . get ( `gobounties/previous/${ created } ?${ query } ` ) ;
2091
2077
return bounty ;
2092
2078
} catch ( e ) {
@@ -3287,10 +3273,7 @@ export class MainStore {
3287
3273
} ;
3288
3274
3289
3275
// if we don't pass the params, we should use previous params for invalidate query
3290
- const query = makeQueryParams (
3291
- featureLimit ,
3292
- queryParams
3293
- ) ;
3276
+ const query = makeQueryParams ( featureLimit , queryParams ) ;
3294
3277
3295
3278
const r : any = await fetch ( `${ TribesURL } /features/forworkspace/${ uuid } ?${ query } ` , {
3296
3279
method : 'GET' ,
0 commit comments