Error in Ticket User Preferences

I’m in a tunnel in this ticket…
I cannot see what’s wrong…

These are my 2 functions I hope there is the issue…

const updateResponse = await users.updateOne(
{ user_id: email },
{ $set: { preferences: preferences } }, {upsert: true}
)

await users.insertOne({ name: userInfo.name, email: userInfo.email, password: userInfo.password}, { writeConcern: {w: “majority”}})

And this is the echo of the test:


Any hint please?

Thanks in advance !!

Xavi

Hi @xgubianas,

Please check the return type of the function for this ticket. Let me know if you are still facing the issue.

Kanika