Wrong encoding with notifications templates

Hi, here is my code :
const { Novu } = require('@novu/node')

const notifClient = new Novu('2a9ce65fc171f903b17e4706ebcf0332')

const templates = async () => {
return await notifClient.notificationTemplates.getAll()
}

const notifTemplates = templates().then(res => {
console.log(res.data)
})
const { Novu } = require('@novu/node')

const notifClient = new Novu('2a9ce65fc171f903b17e4706ebcf0332')

const templates = async () => {
return await notifClient.notificationTemplates.getAll()
}

const notifTemplates = templates().then(res => {
console.log(res.data)
})
and here is the log from the code :
No description
3 Replies
Pawan Jain
Pawan Jain14mo ago
@Lionel M We fixed this in our recent novu version Could you please try with latest novu sdk? our latest sdk version is 0.21.0
Lionel Mandine
Lionel MandineOP14mo ago
Hi @Pawan Jain , it works perfectly, i was using 0.13.0 version. In 0.21 everything is great. Thanks buddy
Want results from more Discord servers?
Add your server