File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 5757 run : BUILD_BRANCH=$(echo "${GITHUB_REF#refs/heads/}") npm run build
5858
5959 - name : Store assets
60- if : ${{ github.event_name == 'push' && (github.ref == 'refs/heads/fme-10568 ' || github.ref == 'refs/heads/main') }}
60+ if : ${{ github.event_name == 'push' && (github.ref == 'refs/heads/development ' || github.ref == 'refs/heads/main') }}
6161 uses : actions/upload-artifact@v4
6262 with :
6363 name : assets
6868 name : Upload assets
6969 runs-on : ubuntu-latest
7070 needs : build
71- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/fme-10568 ' }}
71+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/development ' }}
7272 strategy :
7373 matrix :
7474 environment :
Original file line number Diff line number Diff line change @@ -258,10 +258,24 @@ let nodeEventEmitter: NodeJS.EventEmitter = client;
258258
259259// Ready, destroy and flush
260260let promise : Promise < void > = client . ready ( ) ;
261+ promise = client . whenReady ( ) ;
261262promise = client . destroy ( ) ;
262263promise = SDK . destroy ( ) ;
263264// @TODO not public yet
264265// promise = client.flush();
266+ const promiseWhenReadyFromCache : Promise < boolean > = client . whenReadyFromCache ( ) ;
267+
268+ // Get readiness status
269+ let status : SplitIO . ReadinessStatus = client . getStatus ( ) ;
270+ status = {
271+ isReady : false ,
272+ isReadyFromCache : false ,
273+ isTimedout : false ,
274+ isDestroyed : false ,
275+ isOperational : false ,
276+ hasTimedout : false ,
277+ lastUpdate : 0
278+ }
265279
266280// We can call getTreatment with or without a key.
267281treatment = client . getTreatment ( splitKey , 'mySplit' ) ;
You can’t perform that action at this time.
0 commit comments