You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It bugs out when I try to call novu.preferences.update...
im using
"@novu/js": "^2.6.3",
and having this issue, while lists functions perfectly, update is not:
TypeError: novuClient.preferences.update is not a function
Source
src\context\NotificationsContext.tsx (217:36) @ update
215 |
216 | try {
> 217 | await novuClient.preferences.update({
| ^
218 | workflowId: workflowId || undefined, // If no workflowId, it updates global preferences
219 | channelPreferences, // This matches Novu's expected format
220 | });
👟 Reproduction steps
Create a novu client like this:
const novu = new Novu({
subscriberId: subscriberId,
applicationIdentifier: process.env.NEXT_PUBLIC_NOVU_APP_ID!
});
setNovuClient(novu);
Then if we call list, it works:
const response = await novuClient.preferences.list();
return response.data || [];
```
But update is not:
```
TypeError: novuClient.preferences.update is not a function
Source
src\context\NotificationsContext.tsx (217:36) @ update
215 |
216 | try {
> 217 | await novuClient.preferences.update({
| ^
218 | workflowId: workflowId || undefined, // If no workflowId, it updates global preferences
219 | channelPreferences, // This matches Novu's expected format
220 | });
👍 Expected behavior
it should be at least in the function as stated in the doc
👎 Actual Behavior with Screenshots
Novu version
"@novu/js": "^2.6.3",
npm version
No response
node version
20.9.0
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
Hi! I didn't see any interests into guide me in the right direction and doesn't have the experience yet collaborating on PRs but I'm still in need to get this fixed... So I can Collaborate into proposing a fix.
In the meantime I think I should call another method to tackle this, but it's getting too mixed and out of our usecase that I'm thinking about making a simpler approach with a custom solution.
📜 Description
It bugs out when I try to call novu.preferences.update...
im using
and having this issue, while lists functions perfectly, update is not:
👟 Reproduction steps
Create a novu client like this:
Then if we call list, it works:
👍 Expected behavior
it should be at least in the function as stated in the doc
👎 Actual Behavior with Screenshots
Novu version
npm version
No response
node version
20.9.0
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: