mirror of
https://github.com/PretendoNetwork/friends.git
synced 2026-04-25 07:18:36 -05:00
Added 100 result limit to friendlist query
This commit is contained in:
parent
598a75f37d
commit
b110b38edf
|
|
@ -15,7 +15,7 @@ import (
|
|||
func GetUserFriendList(pid uint32) []*nexproto.FriendInfo {
|
||||
friendList := make([]*nexproto.FriendInfo, 0)
|
||||
|
||||
rows, err := database.Postgres.Query(`SELECT user2_pid, date FROM wiiu.friendships WHERE user1_pid=$1 AND active=true`, pid)
|
||||
rows, err := database.Postgres.Query(`SELECT user2_pid, date FROM wiiu.friendships WHERE user1_pid=$1 AND active=true LIMIT 100`, pid)
|
||||
if err != nil {
|
||||
globals.Logger.Critical(err.Error())
|
||||
return friendList
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user