You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
spa_instat_tv/src/requests/saveUserPreferences.tsx

25 lines
425 B

import {
DATA_URL,
PROCEDURES,
} from 'config'
import { callApi } from 'helpers'
import type { UserPreferences } from './getUserPreferences'
const proc = PROCEDURES.save_user_preferences
export const saveUserPreferences = (data: UserPreferences | null) => {
const config = {
body: {
params: {
_p_data: data,
},
proc,
},
}
return callApi({
config,
url: DATA_URL,
})
}