29-11-2023
This commit is contained in:
@@ -90,7 +90,7 @@ class App {
|
||||
)
|
||||
const createdAnnotations = await this.Instance.create(annotations)
|
||||
|
||||
await this.Network.postHistory(this.envelopeKey, ActionType.Seen)
|
||||
await this.Network.postHistory(this.envelopeKey)
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
|
||||
@@ -32,20 +32,16 @@
|
||||
})
|
||||
}
|
||||
|
||||
postHistory(envelopeKey, actionType) {
|
||||
postHistory(envelopeKey) {
|
||||
const url = `/api/history/${envelopeKey}`
|
||||
|
||||
const data = {
|
||||
actionType: actionType,
|
||||
}
|
||||
|
||||
const options = {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json; charset=utf-8',
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
body: JSON.stringify({}),
|
||||
}
|
||||
|
||||
console.debug('PostHistory/Calling url: ' + url)
|
||||
|
||||
Reference in New Issue
Block a user