Changes to getPreference()?
Hi,
I'm using
in my application settings to display preferences. I filter on preferences that includes in_app to display the in_app setting and vice versa for email.
However I think the api has changed? because now the preferences include all channels even if my workflow only uses email?
11 Replies
@christian
We recently fixed this issue with the underline API of the above sdk method
https://github.com/novuhq/novu/pull/7101
Now this API returns all channels with false or true values. This behaviour can be changed with
includeInactiveChannels
api query param
Updated SDK in this PR
https://github.com/novuhq/novu/pull/7115
Checkout API reference
https://docs.novu.co/api-reference/subscribers/get-subscriber-preferencesok so I need to wait for the PR to be merged in order to fix this since I'm using the novu client
Yes, you will need to update node sdk version and add 2nd argument value as
false
will it be merged today?
@christian
I will push this PR to be merged today
Would be nice to get this in a version soon, the api changes broke my application and I don't want to move from using the client.
think it'll be ready today @Pawan Jain , sorry to bother but in the current state my app is broken
@christian
Apologies for delay
I am looking into this on priority
@christian
We released new node SDK version
2.0.4
Could you try with this version?
it's not working for me
with using fetch and api:
using client:
I'll just use the api instead
@christian, you just advanced to level 2!
@christian
Could you please try with
@novu/node
version 2.0.5
same :/