Skip to content

Commit

Permalink
fix: use new /ceramic/interests POST endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielc committed Jul 31, 2024
1 parent a142e04 commit e3b5ba0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/recon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,11 @@ export class ReconApi extends Observable<ReconEventFeedResponse> implements IRec
}
try {
const headers = { 'Content-Type': 'application/json' }
const query = controller ? `controller=${controller}` : ''
await this.#sendRequest(this.#url + `/ceramic/interests/model/${model.toString()}?${query}`, {
const body = { sep: "model", sepValue: model.toString(), ...(controller && { controller }) }
await this.#sendRequest(this.#url + `/ceramic/interests`, {
method: 'POST',
headers,
body,
})
this.#logger.debug(`Recon: added interest for model ${model.toString()}`)
} catch (err) {
Expand Down

0 comments on commit e3b5ba0

Please sign in to comment.