mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-07 05:26:57 +02:00
12 lines
317 B
JavaScript
Vendored
12 lines
317 B
JavaScript
Vendored
/**
|
|
* Retrieve app settings from the backend, only if the store is not synced yet
|
|
*/
|
|
export default function syncAppSettings({ to, next, nextMiddleware, stores }) {
|
|
const { appSettings, user } = stores
|
|
|
|
if (user.isAdmin && ! appSettings.isSynced ) {
|
|
appSettings.fetch()
|
|
}
|
|
|
|
nextMiddleware()
|
|
} |