Skip to content

Commit c5f027e

Browse files
committed
Updated privateCLient and publicClient instance too
1 parent ade6a4f commit c5f027e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/utils/meilisearch-test-utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,20 @@ async function getClient(permission: string): Promise<MeiliSearch> {
5353

5454
if (permission === 'Search') {
5555
const searchKey = await getKey(permission)
56-
const publicClient = new MeiliSearch({
56+
const searchClient = new MeiliSearch({
5757
host: HOST,
5858
apiKey: searchKey,
5959
})
60-
return publicClient
60+
return searchClient
6161
}
6262

6363
if (permission === 'Admin') {
6464
const adminKey = await getKey(permission)
65-
const privateClient = new MeiliSearch({
65+
const adminClient = new MeiliSearch({
6666
host: HOST,
6767
apiKey: adminKey,
6868
})
69-
return privateClient
69+
return adminClient
7070
}
7171

7272
return masterClient

0 commit comments

Comments
 (0)