Skip to content

Commit 5f558a7

Browse files
author
Phil Varner
authored
fix unrestricted index population by waiting on async (#361)
1 parent a6f977f commit 5f558a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ async function constructSearchParams(parameters, page, limit) {
416416
}
417417
} else {
418418
if (!unrestrictedIndices) {
419-
populateUnrestrictedIndices()
419+
await populateUnrestrictedIndices()
420420
}
421421
indices = unrestrictedIndices
422422
}

0 commit comments

Comments
 (0)