Skip to content

Commit ded5fce

Browse files
committed
Convert a base 16 to base 10
1 parent 96f5907 commit ded5fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/queries/users.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const createUser = async (attrs: CreateUserAttrs) => {
2121
await client.sAdd(usernamesUniqueKey(), attrs.username);
2222
await client.zAdd(usernamesUniqueKey(), {
2323
value: attrs.username,
24-
id,
24+
score: parseInt(id, 16), // we converted a base 16 to a base 10 by implementing the parInt function
2525
});
2626

2727
return id;

0 commit comments

Comments
 (0)