feature: update event store contents from existing code

This commit is contained in:
Ondřej Synáček 2020-12-15 22:00:45 +01:00
parent 985b580d7d
commit e3917ee79a
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,6 @@
// TODO: this import should be removed once refactoring is finished
import { eventStore } from '../../frontend/stores'
const migrateRecord = (record) => {
// NOTE: v3 records
const id = record.id || record.order
@ -64,6 +67,8 @@ const saveRecord = ({ id, link, createdAt, startTime, title }) => {
}
updateStorage([ ...storageContents, record ])
eventStore.setCalculation({ id, link, createdAt, startTime, title })
}
const deleteRecord = (id) => {