fix: add return to profiles.all()

This commit is contained in:
starnakin 2023-12-09 15:13:40 +01:00
parent 0edcd97f94
commit dd19e15e7d

View File

@ -16,7 +16,7 @@ class Profiles
response_data.forEach((profile) => { response_data.forEach((profile) => {
profiles.push(new Profile(this.client, profile.username, profile.avatar_url, profile.user_id)) profiles.push(new Profile(this.client, profile.username, profile.avatar_url, profile.user_id))
}); });
console.log(profiles); return profiles;
} }
} }