File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ import * as DefaultMeiliSearch from '../../../../'
33
44const client = new MeiliSearch ( { host :'http://localhost:7700' , apiKey : 'masterKey' } )
55const defaultClient = new DefaultMeiliSearch . MeiliSearch ( { host :'http://localhost:7700' , apiKey : 'masterKey' } )
6- const token = client . generateTenantToken ( [ ] )
6+ const token = client . generateTenantToken ( 'e489fe16-3381-431b-bee3-00430192915d' , [ ] )
77console . log ( { client, token, defaultClient } )
Original file line number Diff line number Diff line change 1- import { IndexObject , MeiliSearch } from '../../../../'
1+ import { MeiliSearch } from '../../../../'
2+ import { IndexObject } from '../../../../src'
23
34const config = {
45 host : 'http://127.0.0.1:7700' ,
@@ -20,5 +21,5 @@ function greeter(person: string) {
2021 user
2122 ) } this is the list of all your indexes: \n ${ uids . join ( ', ' ) } `
2223
23- console . log ( await client . generateTenantToken ( [ ] ) ) // Resolved using the `browser` field
24+ console . log ( await client . generateTenantToken ( 'e489fe16-3381-431b-bee3-00430192915d' , [ ] ) ) // Resolved using the `browser` field
2425} ) ( )
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const indexUid = "movies"
5959 console . log ( hit ?. _formatted ?. title )
6060 } )
6161
62- console . log ( await client . generateTenantToken ( [ ] ) )
62+ console . log ( await client . generateTenantToken ( 'e489fe16-3381-431b-bee3-00430192915d' , [ ] ) )
6363
6464 await index . delete ( )
6565} ) ( )
You can’t perform that action at this time.
0 commit comments