Skip to content

Commit

Permalink
Merge pull request #5 from eyra/track-user-start
Browse files Browse the repository at this point in the history
Removed tracking of user start outside script, obsolete since new sta…
  • Loading branch information
mellelieuwes authored Dec 8, 2023
2 parents 615acfe + 4e4d8b1 commit 8f1e853
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/framework/processing/worker_engine.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandHandler, ProcessingEngine } from '../types/modules'
import { CommandSystemDonate, isCommand, Response } from '../types/commands'
import {isCommand, Response } from '../types/commands'

export default class WorkerProcessingEngine implements ProcessingEngine {
sessionId: String
Expand All @@ -21,18 +21,6 @@ export default class WorkerProcessingEngine implements ProcessingEngine {
)
this.handleEvent(event)
}

this.trackUserStart(sessionId)
}

trackUserStart (sessionId: string): void {
const key = `${sessionId}-tracking`
const jsonString = JSON.stringify({ message: 'user started' })
const command: CommandSystemDonate = { __type__: 'CommandSystemDonate', key, json_string: jsonString }
this.commandHandler.onCommand(command).then(
() => {},
() => {}
)
}

handleEvent (event: any): void {
Expand Down

0 comments on commit 8f1e853

Please sign in to comment.