mirror of
https://github.com/comatory/fb2iCal
synced 2025-02-17 12:10:36 +01:00
feature: update event store contents from existing code
This commit is contained in:
parent
985b580d7d
commit
e3917ee79a
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user