From e70d811654239c83f5eea2d2d8e82d77616af48b Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Wed, 17 Jun 2020 10:56:18 +0100 Subject: [PATCH] fix prefixes --- lib/request.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/request.js b/lib/request.js index c76f0be..8a431c9 100644 --- a/lib/request.js +++ b/lib/request.js @@ -44,14 +44,14 @@ module.exports = class Request { async getTimeOffset() { const start = Date.now(); - const result = await this.get('/v2/public/time'); + const result = await this.get('v2/public/time'); const end = Date.now(); return Math.ceil((result.time_now * 1000) - end + ((end - start) / 2)); } async _call(method, endpoint, params) { - const publicEndpoint = endpoint.startsWith('/v2/public'); + const publicEndpoint = endpoint.startsWith('v2/public'); if(!publicEndpoint) { if(!this.key || !this.secret) throw new Error('Private endpoints require api and private keys set');