Skip to content

Commit

Permalink
Merge pull request #33 from askorama/feat/include-iod-to-search
Browse files Browse the repository at this point in the history
Feat: add id to search request
  • Loading branch information
niltonheck authored Aug 22, 2024
2 parents 23a61d6 + 90cfc3e commit e4af04d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ export class OramaClient {
const b = body as any
b.version = version
b.id = this.id
b.visitorId = this.profile.getUserId()

requestOptions.body = Object.entries(b)
.map(([key, value]) => `${key}=${encodeURIComponent(JSON.stringify(value))}`)
Expand Down

0 comments on commit e4af04d

Please sign in to comment.