Created
          May 28, 2019 14:49 
        
      - 
      
- 
        Save rjriel/939f5d421448d0cd6c4be78f002133fe to your computer and use it in GitHub Desktop. 
    handle finish
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if (finishedFound) { | |
| ... | |
| const badgePatchProperties = [ | |
| { | |
| qOp: "replace", | |
| qPath: "/badge", | |
| qValue: "0" | |
| }, | |
| { | |
| qOp: "replace", | |
| qPath: "/raceId", | |
| qValue: '""' | |
| }] | |
| await badgeObject.applyPatches(badgePatchProperties) | |
| await qixApp.saveObjects() | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment