Skip to content

Commit

Permalink
Apparently thaty's why it wasn't working
Browse files Browse the repository at this point in the history
  • Loading branch information
Regalijan authored Dec 13, 2024
1 parent 7df89c3 commit 7d91455
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/friends/getFollowerCount.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ exports.required = ['userId']
**/

// Define
exports.func = function (userId) {
exports.func = function (args) {
const httpOpt = {
url: `//friends.roblox.com/v1/users/${userId}/followers/count`,
url: `//friends.roblox.com/v1/users/${args.userId}/followers/count`,
options: {
json: true,
method: 'GET',
Expand Down
4 changes: 2 additions & 2 deletions lib/friends/getFollowingCount.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ exports.required = ['userId']
**/

// Define
exports.func = function (userId) {
exports.func = function (args) {
const httpOpt = {
url: `//friends.roblox.com/v1/users/${userId}/followings/count`,
url: `//friends.roblox.com/v1/users/${args.userId}/followings/count`,
options: {
json: true,
method: 'GET',
Expand Down
4 changes: 2 additions & 2 deletions lib/friends/getFriendCount.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ exports.required = ['userId']
**/

// Define
exports.func = function (userId) {
exports.func = function (args) {
const httpOpt = {
url: `//friends.roblox.com/v1/users/${userId}/friends/count`,
url: `//friends.roblox.com/v1/users/${args.userId}/friends/count`,
options: {
json: true,
method: 'GET',
Expand Down
8 changes: 4 additions & 4 deletions lib/users/getPlayerInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ exports.required = ['userId']
function getPlayerInfo (userId) {
return new Promise((resolve, reject) => {
const requests = [
getUserInfo(userId),
getFriendCount(userId),
getFollowingCount(userId),
getFollowerCount(userId),
getUserInfo({ userId }),
getFriendCount({ userId }),
getFollowingCount({ userId }),
getFollowerCount({ userId }),
].map(promise => promise.then(
val => ({ status: 'fulfilled', value: val }),
rej => ({ status: 'rejected', reason: rej })
Expand Down
4 changes: 2 additions & 2 deletions lib/users/getUserInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ exports.required = ['userId']
**/

// Define
exports.func = function (userId) {
exports.func = function (args) {
const httpOpt = {
url: `//users.roblox.com/v1/users/${userId}`,
url: `//users.roblox.com/v1/users/${args.userId}`,
options: {
json: true,
method: 'GET',
Expand Down

0 comments on commit 7d91455

Please sign in to comment.