update
This commit is contained in:
@ -9,7 +9,7 @@ interface SaveLogsParams {
|
||||
action: string;
|
||||
}
|
||||
|
||||
const API_URL = apiConfig.service_user;
|
||||
const API_URL = apiConfig.service_dashboard;
|
||||
|
||||
const getCurrentTimeJakarta = () => {
|
||||
const jakartaTime = new Date().toLocaleString('id-ID', {
|
||||
@ -38,7 +38,6 @@ export async function doSaveLogActivity(payload: SaveLogsParams): Promise<Action
|
||||
refresh_token: token.refresh_token,
|
||||
url: window.location.href,
|
||||
data_body: getCurrentTimeJakarta(),
|
||||
application: 'credit'
|
||||
};
|
||||
|
||||
const response = await axios.post(`${API_URL}/user_activity/create`, dtParams);
|
||||
|
||||
Reference in New Issue
Block a user