cartodb-4.42/lib/assets/javascripts/new-dashboard/router/hooks/fetch-notifications.js
2024-04-06 05:25:13 +00:00

11 lines
287 B
JavaScript

import store from 'new-dashboard/store';
export default function fetchNotifications (to, from, next) {
store.dispatch('notifications/fetchNotifications', {
baseUrl: store.state.user.base_url,
userId: store.state.user.id,
apiKey: store.state.user.api_key
});
next();
}