diff --git a/src/Pim/index.tsx b/src/Pim/index.tsx index 5e4fc9c..d6b7b40 100644 --- a/src/Pim/index.tsx +++ b/src/Pim/index.tsx @@ -36,7 +36,7 @@ import { fetchEntries } from '../store/actions'; import { SyncInfo } from '../SyncGate'; -import { createJournalEntry } from '../etesync-helpers'; +import { addJournalEntry } from '../etesync-helpers'; import { syncEntriesToItemMap, syncEntriesToEventItemMap, syncEntriesToTaskItemMap } from '../journal-processors'; @@ -261,7 +261,7 @@ class Pim extends React.PureComponent { } const saveEvent = store.dispatch( - createJournalEntry( + addJournalEntry( this.props.etesync, this.props.userInfo, journal, prevUid, action, item.toIcal())); (saveEvent as any).then(() => { @@ -296,7 +296,7 @@ class Pim extends React.PureComponent { } const deleteItem = store.dispatch( - createJournalEntry( + addJournalEntry( this.props.etesync, this.props.userInfo, journal, prevUid, action, item.toIcal())); (deleteItem as any).then(() => { diff --git a/src/etesync-helpers.ts b/src/etesync-helpers.ts index e2ea8fd..32abbf5 100644 --- a/src/etesync-helpers.ts +++ b/src/etesync-helpers.ts @@ -3,7 +3,7 @@ import * as EteSync from './api/EteSync'; import { CredentialsData, UserInfoData } from './store'; import { addEntries } from './store/actions'; -export function createJournalEntry( +export function addJournalEntry( etesync: CredentialsData, userInfo: UserInfoData, journal: EteSync.Journal,