From 941b47b59a972be87aeca4d7b33b83765d4b8cfd Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 15 Mar 2019 18:43:22 +0000 Subject: [PATCH] API helpers: rename createJournalEntry -> addJournalEntry. Following the change from the previous commit. --- src/Pim/index.tsx | 6 +++--- src/etesync-helpers.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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,