Compare commits

...

2 Commits

Author SHA1 Message Date
Maxi Quoß 6a8bbb4525 fix: authStore clear for non superusers, close #1774 2026-09-26 10:47:13 +02:00
Maxi Quoß 66ce01cb40 fix: shutdown cron not working when lazy ping is enabled, close #1773 2026-09-19 20:28:22 +02:00
2 changed files with 3 additions and 12 deletions
+3 -4
View File
@@ -209,10 +209,9 @@ func SetWakeShutdownJobs(app core.App) {
if !isOnline {
return
}
status := d.GetString("status")
if status != "online" {
return
}
// The status can be stale when lazy ping marks devices offline after
// the last client disconnects. The reachability check above is the
// authoritative signal for whether a shutdown command may run.
d.Set("status", "pending")
if err := app.Save(d); err != nil {
log.Error("Failed to save pending device status", "device", d.GetString("name"), "error", err)
-8
View File
@@ -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;