diff --git a/packages/node/README.md b/packages/node/README.md index 59b643315dc..53a41dad3c8 100644 --- a/packages/node/README.md +++ b/packages/node/README.md @@ -175,18 +175,18 @@ import { Novu } from '@novu/node'; const novu = new Novu(''); -await novu.subscribers.identify("subscriberId",{ - firstName: "Pawan"; - lastName: "Jain"; - email: "pawan.jain@domain.com"; - phone: "+1234567890"; - avatar: "https://gravatar.com/avatar/553b157d82ac2880237566d5a644e5fe?s=400&d=robohash&r=x"; - locale: "en-US"; +await novu.subscribers.identify("subscriberId", { + firstName: "Pawan", + lastName: "Jain", + email: "pawan.jain@domain.com", + phone: "+1234567890", + avatar: "https://gravatar.com/avatar/553b157d82ac2880237566d5a644e5fe?s=400&d=robohash&r=x", + locale: "en-US", data: { - isDeveloper : true + isDeveloper: true, customKey: "customValue" - }; -}) + } +}); ```