Skip to content

Commit 722777c

Browse files
committed
Make ids obviously strings
1 parent cdd9326 commit 722777c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nodejs/basic-example/talkjs-backend/users.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"users": [
33
{
4-
"id": "1",
4+
"id": "alice",
55
"name": "Alice",
66
"email": "[email protected]",
77
"photoUrl": "https://talkjs.com/new-web/avatar-7.jpg",
88
"role": "default",
99
"welcomeMessage": "Hi 👋"
1010
},
1111
{
12-
"id": "2",
12+
"id": "sebastian",
1313
"name": "Sebastian",
1414
"email": "[email protected]",
1515
"photoUrl": "https://talkjs.com/new-web/avatar-2.jpg",

nodejs/basic-example/talkjs-frontend/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const getUser = async (id) => {
1313

1414
(async function () {
1515
await Talk.ready;
16-
const alice = await getUser(1);
17-
const sebastian = await getUser(2);
16+
const alice = await getUser("alice");
17+
const sebastian = await getUser("sebastian");
1818
const session = new Talk.Session({
1919
appId: "<APP_ID>", // replace with your app ID
2020
me: sebastian,

0 commit comments

Comments
 (0)