feat(ui) - metrics post endpoint change

This commit is contained in:
Shekar Siri 2022-02-07 18:37:59 +01:00
parent 3e7634c043
commit c1ff8f4157
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ import { withRouter } from 'react-router';
const OVERVIEW = 'overview';
const PERFORMANCE = 'performance';
const ERRORS_N_CRASHES = 'errors_n_crashes';
const ERRORS_N_CRASHES = 'errors';
const RESOURCES = 'resources';
const CUSTOM_METRICS = 'custom_metrics';

View file

@ -178,7 +178,7 @@ export function resendEmailVerification(email) {
export function updateAppearance(appearance) {
return {
types: UPDATE_APPEARANCE.toArray(),
call: client => client.post('/account', {
call: client => client.post('/account/appearance', {
appearance: Record.isRecord(appearance) ? appearance.toData() : appearance
}),
appearance,