Rev 2203 | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import { axios } from '@app/utils';export const checkSession = async (url) => {const response = await axios.get(url);const { data, success } = response.data;if (!success) {throw new Error('Error al obtener las notificaciones, por favor intente más tarde');}return {messages: parseInt(data.total_messages),notifications: parseInt(data.total_notifications)};};