Ir a la última revisión | 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.dataif (!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)}}