Skip to content

Commit

Permalink
fix: use new enpoint for view event
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikmv committed Dec 17, 2024
1 parent e9181ef commit 443c643
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export const updateEventNoteField = (value: string) =>
export const requestSaveEventNote = (note: string) =>
actionCreator(actionTypes.REQUEST_SAVE_EVENT_NOTE)({ note });

export const startSaveEventNote = (eventId: string, serverData: Object, selections: Object, clientId: string) =>
export const startSaveEventNote = (eventUid: string, serverData: Object, selections: Object, clientId: string) =>
actionCreator(actionTypes.START_SAVE_EVENT_NOTE)({ selections, clientId }, {
offline: {
effect: {
url: `events/${eventId}/note`,
url: `/tracker/events/${eventUid}/note`,
method: effectMethods.POST,
data: serverData,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const addNoteForViewEventEpic = (action$: InputObservable, store: ReduxSt
const clientId = uuid();
const serverData = {
event: eventId,
notes: [{ value: payload.note }],
value: payload.note,
};

const clientNote = {
Expand Down

0 comments on commit 443c643

Please sign in to comment.