diff --git a/src/lib/models/User.ts b/src/lib/models/User.ts index 1710d06..ad571db 100644 --- a/src/lib/models/User.ts +++ b/src/lib/models/User.ts @@ -291,8 +291,8 @@ export class User extends Model { public async friends({first, offset}: { first: number, offset: number }): Promise { const limit = first ?? 10; offset = offset ?? 0; - const friendList = await this.$get("rFriendOf", {limit, offset}) as User[]; - friendList.concat(await this.$get("rFriends", {limit, offset}) as User[]); + let friendList = await this.$get("rFriendOf", {limit, offset}) as User[]; + friendList = friendList.concat(await this.$get("rFriends", {limit, offset}) as User[]); return friendList.slice(0, limit); }