mirror of
https://github.com/idanoo/autobrr
synced 2025-07-26 02:09:13 +00:00
feat(config): check for updates reading from config (#1038)
* go indent linting * getLatest endpoint follows config.CheckForUpdates * Revert "getLatest endpoint follows config.CheckForUpdates" This reverts commit 495fabad13b1a96aa83ce50792f5725e9b51061a. * getLatestRelease follows config.check_for_updates * revert: rename data - less changes to conflict * fixup: revert: rename data - less changes to conflict * change queryFn to arrow function
This commit is contained in:
parent
438902137b
commit
6a4d96f988
3 changed files with 14 additions and 4 deletions
|
@ -88,6 +88,7 @@ function ApplicationSettings() {
|
|||
queryFn: APIClient.updates.getLatestRelease,
|
||||
retry: false,
|
||||
refetchOnWindowFocus: false,
|
||||
enabled: data?.check_for_updates === true,
|
||||
onError: err => console.log(err)
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue