Fix optonal parameters in example

This commit is contained in:
AkiraFukushima 2020-03-14 20:22:08 +09:00
parent c836deaead
commit 31d462ed3e
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ const access_token: string = process.env.MASTODON_ACCESS_TOKEN
const client = generator('mastodon', BASE_URL, access_token)
client
.search('whalebird', 'hashtags', null, null, null, true)
.search('whalebird', 'hashtags', { resolve: true })
.then((resp: Response<Entity.Results>) => {
console.log(resp.data.hashtags)
})

View file

@ -7,7 +7,7 @@ const access_token: string = process.env.PLEROMA_ACCESS_TOKEN!
const client = generator('pleroma', BASE_URL, access_token)
client
.search('whalebird', 'hashtags', null, null, null, true)
.search('whalebird', 'hashtags', { resolve: true })
.then((resp: Response<Entity.Results>) => {
console.log(resp.data.hashtags)
})