Skip to content

Commit

Permalink
Merge pull request #2519 from ClearlyClaire/glitch-soc/immutable-reco…
Browse files Browse the repository at this point in the history
…rd-redux

Use Immutable `Record` for accounts in Redux state
  • Loading branch information
ClearlyClaire authored Dec 20, 2023
2 parents a3a58c0 + a4a728b commit f425a1e
Show file tree
Hide file tree
Showing 69 changed files with 880 additions and 679 deletions.
4 changes: 2 additions & 2 deletions app/javascript/flavours/glitch/actions/account_notes.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { ApiRelationshipJSON } from 'flavours/glitch/api_types/relationships';
import { createAppAsyncThunk } from 'flavours/glitch/store/typed_functions';

import api from '../api';

export const submitAccountNote = createAppAsyncThunk(
'account_note/submit',
async (args: { id: string; value: string }, { getState }) => {
// TODO: replace `unknown` with `ApiRelationshipJSON` when it is merged
const response = await api(getState).post<unknown>(
const response = await api(getState).post<ApiRelationshipJSON>(
`/api/v1/accounts/${args.id}/note`,
{
comment: args.value,
Expand Down
Loading

0 comments on commit f425a1e

Please sign in to comment.