Skip to content

Commit

Permalink
fix: Prevent timeouts when querying scene list
Browse files Browse the repository at this point in the history
Trying to use the built-in search with large libraries (20k+ scenes) times out randomly - for at least one other person. This is the fix I have been running locally since the issue appeared a month or so ago.
  • Loading branch information
vt-idiot authored Feb 12, 2024
1 parent 8c13ed3 commit ef05ed3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/store/sceneList.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ const actions = {
q.limit = state.limit

const data = await ky
.post('/api/scene/list', { json: q })
.post('/api/scene/list', {
json: q,
timeout: 6e6
})
.json()

state.isLoading = false
Expand Down

0 comments on commit ef05ed3

Please sign in to comment.