Skip to content

Instantly share code, notes, and snippets.

@rjriel
Created May 28, 2019 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjriel/665a93854cc0501a0a368e4c39b4f427 to your computer and use it in GitHub Desktop.
Save rjriel/665a93854cc0501a0a368e4c39b4f427 to your computer and use it in GitHub Desktop.
const raceId = uuidv4()
const badgePatchProperties = [{
qOp: "replace",
qPath: "/badge",
qValue: participant.badge
},
{
qOp: "replace",
qPath: "/raceId",
qValue: `"${raceId}"`
}]
await enigmaService.updateObject("Badge", badgePatchProperties)
await enigmaService.makeSelection("Badge", participant.badge)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment