From 395f4df09c3d813da30335f4bcb44ef434632b27 Mon Sep 17 00:00:00 2001 From: Parth Shah <87560178+codingis4noobs2@users.noreply.github.com> Date: Mon, 30 Oct 2023 14:31:15 +0530 Subject: [PATCH] Fixed Syntax issue in create-subscriber method --- packages/node/README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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" - }; -}) + } +}); ```