From a18eafc93b8df659f15136f12ababe9310a139e4 Mon Sep 17 00:00:00 2001 From: rtuna Date: Mon, 23 Jan 2023 18:56:33 +0100 Subject: [PATCH] fix(fetch): remove unnecessary part of `/getOtherLeaderboardBaseInfo` body --- fetch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch.go b/fetch.go index 56ddae9..2934e77 100644 --- a/fetch.go +++ b/fetch.go @@ -99,13 +99,13 @@ type UserBaseInfo struct { // GetOtherLeaderboardBaseInfo gets information for the uuid passed in. func GetOtherLeaderboardBaseInfo(ctx context.Context, UUID string) (LdbAPIRes[UserBaseInfo], error) { var res LdbAPIRes[UserBaseInfo] - return res, doPost(ctx, http.DefaultClient, apiBaseV2, "/getOtherLeaderboardBaseInfo", defaultHeaders, strings.NewReader(fmt.Sprintf("{\"encryptedUid\":\"%s\",\"tradeType\":\"PERPETUAL\"}", UUID)), &res) + return res, doPost(ctx, http.DefaultClient, apiBaseV2, "/getOtherLeaderboardBaseInfo", defaultHeaders, strings.NewReader(fmt.Sprintf("{\"encryptedUid\":\"%s\"}", UUID)), &res) } // GetOtherLeaderboardBaseInfo gets information about an user. func (u User) GetOtherLeaderboardBaseInfo(ctx context.Context) (LdbAPIRes[UserBaseInfo], error) { var res LdbAPIRes[UserBaseInfo] - return res, doPost(ctx, u.c, apiBaseV2, "/getOtherLeaderboardBaseInfo", u.headers, strings.NewReader(fmt.Sprintf("{\"encryptedUid\":\"%s\",\"tradeType\":\"PERPETUAL\"}", u.UID)), &res) + return res, doPost(ctx, u.c, apiBaseV2, "/getOtherLeaderboardBaseInfo", u.headers, strings.NewReader(fmt.Sprintf("{\"encryptedUid\":\"%s\"}", u.UID)), &res) } // ************************************************** /searchNickname **************************************************