mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-11-27 12:21:56 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a8bbb4525 |
@@ -100,14 +100,6 @@
|
||||
await $pocketbase
|
||||
.collection('users')
|
||||
.authRefresh()
|
||||
.then(async () => {
|
||||
// set settingsPriv store on load
|
||||
if (!$settingsPriv) {
|
||||
const res = await $pocketbase.collection('settings_private').getFirstListItem('');
|
||||
settingsPriv.set(res as SettingsPrivate);
|
||||
}
|
||||
})
|
||||
|
||||
.catch((err) => {
|
||||
// clear the store only on invalidated/expired token
|
||||
const status = err?.status << 0;
|
||||
|
||||
Reference in New Issue
Block a user