From 103e19830e87e088b61bb942e5c3383dd7466837 Mon Sep 17 00:00:00 2001 From: Nathaniel Cook Date: Wed, 31 Jul 2024 08:34:04 -0600 Subject: [PATCH] fix: use new /ceramic/interests POST endpoint --- packages/core/src/recon.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/recon.ts b/packages/core/src/recon.ts index 7a0dd9ff50..838465eb96 100644 --- a/packages/core/src/recon.ts +++ b/packages/core/src/recon.ts @@ -169,10 +169,11 @@ export class ReconApi extends Observable 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) {