Skip to content

Commit

Permalink
Feat: Raise index limit in access keys (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpolaszek authored Nov 27, 2024
1 parent a13db41 commit 647c85e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/pages/keys/settings/create-token.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ const expires = computed({
}) as ComputedRef<boolean>
const { keyToUse, searchRules, expiresAt, jwt } = toRefs(self)
const [indexes, keys] = await Promise.all([
meili.getIndexes().then(({ results }) => results.map(({ uid }) => uid)),
meili
.getIndexes({ limit: 1000 })
.then(({ results }) => results.map(({ uid }) => uid)),
meili.getKeys(),
])
const availableIndexes = computed(() =>
Expand Down
4 changes: 3 additions & 1 deletion app/pages/keys/settings/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@ const submit = async () => {
}
const { createdKey } = toRefs(self)
const indexes = (await meili.getRawIndexes()).results.map(({ uid }) => uid)
const indexes = (await meili.getRawIndexes({ limit: 1000 })).results.map(
({ uid }) => uid,
)
</script>

<i18n>
Expand Down

0 comments on commit 647c85e

Please sign in to comment.