From b9257ce08a1c60d1014645d50070b726f0c71122 Mon Sep 17 00:00:00 2001 From: cracrayol Date: Mon, 19 Apr 2021 23:09:55 +0200 Subject: [PATCH] Fix loading of rivals scores --- popn@asphyxia/handler/eclale.ts | 2 +- popn@asphyxia/handler/lapistoria.ts | 2 +- popn@asphyxia/handler/usaneko.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/popn@asphyxia/handler/eclale.ts b/popn@asphyxia/handler/eclale.ts index 4eb23ef..7540fed 100644 --- a/popn@asphyxia/handler/eclale.ts +++ b/popn@asphyxia/handler/eclale.ts @@ -461,7 +461,7 @@ const write = async (req: EamuseInfo, data: any, send: EamuseSend): Promise */ const friend = async (req: EamuseInfo, data: any, send: EamuseSend): Promise => { const refid = $(data).attr()['ref_id']; - const no = parseInt($(data).attr()['no'], -1); + const no = parseInt($(data).attr()['no'], 10); const rivals = await utils.readRivals(refid); diff --git a/popn@asphyxia/handler/lapistoria.ts b/popn@asphyxia/handler/lapistoria.ts index c357a3a..659a298 100644 --- a/popn@asphyxia/handler/lapistoria.ts +++ b/popn@asphyxia/handler/lapistoria.ts @@ -384,7 +384,7 @@ const write = async (req: EamuseInfo, data: any, send: EamuseSend): Promise */ const friend = async (req: EamuseInfo, data: any, send: EamuseSend): Promise => { const refid = $(data).attr()['ref_id']; - const no = parseInt($(data).attr()['no'], -1); + const no = parseInt($(data).attr()['no'], 10); const rivals = await utils.readRivals(refid); diff --git a/popn@asphyxia/handler/usaneko.ts b/popn@asphyxia/handler/usaneko.ts index 9164289..95a5a4e 100644 --- a/popn@asphyxia/handler/usaneko.ts +++ b/popn@asphyxia/handler/usaneko.ts @@ -638,7 +638,7 @@ const write = async (req: EamuseInfo, data: any, send: EamuseSend): Promise */ const friend = async (req: EamuseInfo, data: any, send: EamuseSend): Promise => { const refid = $(data).attr()['ref_id']; - const no = parseInt($(data).attr()['no'], -1); + const no = parseInt($(data).attr()['no'], 10); const version = getVersion(req); const rivals = await utils.readRivals(refid);