Skip to content

fix(fetch): avoid mutating caller options when reading namespace - #76

Merged
CahidArda merged 1 commit into
upstash:masterfrom
shafiktanbir:fix/fetch-namespace-options
Nov 23, 2026
Merged

CahidArda merged 1 commit into
upstash:masterfrom
shafiktanbir:fix/fetch-namespace-options

Conversation

@shafiktanbir

Copy link
Copy Markdown
Contributor

Calling new FetchCommand deleted opts.namespace from the options object passed by the caller. Reusing the same options object across calls caused subsequent fetches to target the default namespace instead of the configured one.

Read namespace via destructuring without modifying opts.

@CahidArda CahidArda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants