fix: admin/plugins/updates: was unusable if a plugin declared the wrong repo
Massimo Melina committed
Jul 1, 2023 at 13:48 UTC
7be3844b1bbc2b6e31b2721f73a60b67c9943350
1 file changed
+2
src/api.plugins.ts
+2
@@ -59,6 +59,8 @@ const apis: ApiHandlers = {
59
list.add(online)
60
}
61
catch (err:any) {
62
+ if (err.message === '404') // the plugin is declaring a wrong repo
63
+ return
64
return err.code || err.message
65
}
66
}))