MCPcopy Create free account
hub / github.com/GetStream/stream-js / restore

Method restore

src/reaction.ts:317–322  ·  view source on GitHub ↗

* restore deleted reaction * @link https://getstream.io/activity-feeds/docs/node/reactions_introduction/?language=js#removing-reactions * @method restore * @memberof StreamReaction.prototype * @param {string} id Reaction Id * @return {Promise } * @example reactions.r

(id: string)

Source from the content-addressed store, hash-verified

315 * @example reactions.restore("67b3e3b5-b201-4697-96ac-482eb14f88ec")
316 */
317 restore(id: string) {
318 return this.client.put({
319 url: this.buildURL(id, 'restore'),
320 token: this.token,
321 });
322 }
323}

Callers 1

reaction.jsFile · 0.80

Calls 2

putMethod · 0.80
buildURLMethod · 0.80

Tested by

no test coverage detected