Compare commits

..

3 Commits
0.63.0 ... main

Author SHA1 Message Date
srgooglo
20c0900252
Merge pull request #5 from ragestudio/dev
Dev
2025-04-10 21:31:06 +02:00
4dcfb65f03 update linebridge client 2025-04-10 19:30:43 +00:00
bce0abd21b Add basic flag to UserModel.data in spectrum injectUserDataOnList 2025-04-10 14:35:26 +00:00
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "comty.js", "name": "comty.js",
"version": "0.63.0", "version": "0.63.1",
"main": "./dist/index.js", "main": "./dist/index.js",
"description": "Official Comty API for JavaScript", "description": "Official Comty API for JavaScript",
"homepage": "https://github.com/ragestudio/comty.js", "homepage": "https://github.com/ragestudio/comty.js",
@ -18,7 +18,7 @@
"js-cookie": "^3.0.5", "js-cookie": "^3.0.5",
"jsonwebtoken": "^9.0.0", "jsonwebtoken": "^9.0.0",
"jwt-decode": "^4.0.0", "jwt-decode": "^4.0.0",
"linebridge-client": "^1.1.0", "linebridge-client": "^1.1.1",
"luxon": "^3.6.0", "luxon": "^3.6.0",
"socket.io-client": "^4.8.1" "socket.io-client": "^4.8.1"
}, },

View File

@ -13,7 +13,10 @@ async function injectUserDataOnList(list) {
return item.user_id return item.user_id
}) })
let users = await UserModel.data({ user_id: user_ids.join(",") }) let users = await UserModel.data({
user_id: user_ids.join(","),
basic: true,
})
if (!Array.isArray(users)) { if (!Array.isArray(users)) {
users = [users] users = [users]