Skip to content

Commit

Permalink
refresh the session ID on annotation.update()
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Nov 28, 2024
1 parent 28b454f commit a2e4e9c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import cuid from 'cuid'
import { getRoot, getSnapshot, types } from 'mobx-state-tree'

import { sessionUtils } from '@store/utils'

const Annotation = types.model('Annotation', {
id: types.identifier,
task: types.string,
Expand Down Expand Up @@ -34,8 +36,8 @@ const Annotation = types.model('Annotation', {
update (value) {
self.value = value
self._inProgress = true
const { authClient } = getRoot(self)
authClient?.checkBearerToken()
// refresh the classification session ID
sessionUtils.getSessionID()
}
}))

Expand Down

0 comments on commit a2e4e9c

Please sign in to comment.