drivly / ctx.do

Context Enrichment API
https://ctx.do
MIT License
6 stars 1 forks source link

Create `instanceId` and `newInstance` properties #24

Closed nathanclevenger closed 2 years ago

nathanclevenger commented 2 years ago

We need to detect if the worker instance is new or if it's already running, so the same way we're creating an empty object for recentInteractions, we should also create a global variable:

let instanceId = undefined