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?
📜 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: