Claire 7d89d1f186 [Glitch] Fix API requests after #30818
Port 2c7eed1fa1e7af72dd03a041a60f2cfd42e913e0 to glitch-soc
2024-06-25 19:07:42 +02:00

8 lines
298 B
TypeScript

import { apiRequestPost } from 'flavours/glitch/api';
import type { ApiRelationshipJSON } from 'flavours/glitch/api_types/relationships';
export const apiSubmitAccountNote = (id: string, value: string) =>
apiRequestPost<ApiRelationshipJSON>(`v1/accounts/${id}/note`, {
comment: value,
});