Merge pull request #5 from ragestudio/dev

Dev
This commit is contained in:
srgooglo 2025-04-10 21:31:06 +02:00 committed by GitHub
commit 20c0900252
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

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

View File

@ -13,7 +13,10 @@ async function injectUserDataOnList(list) {
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)) {
users = [users]