From 21d94dd99743ea9875ab70c3bd1c80e0bf03dbfb Mon Sep 17 00:00:00 2001 From: Tee Date: Mon, 22 Mar 2021 22:26:08 -0400 Subject: [PATCH] Refactor meta route retrieval and return types --- src/classes/meta.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/classes/meta.ts b/src/classes/meta.ts index 5450b16..ffc29d6 100644 --- a/src/classes/meta.ts +++ b/src/classes/meta.ts @@ -2,18 +2,22 @@ import { Client } from '../client'; export class Meta { static async allTypes(): Promise { - return Client.get('types'); + const resposne = await Client.get('types'); + return resposne; } static async allSubtypes(): Promise { - return Client.get('subtypes'); + const response = await Client.get('subtypes'); + return response; } static async allSupertypes(): Promise { - return Client.get('supertypes'); + const response = await Client.get('supertypes'); + return response; } - static allRarities(): Promise { - return Client.get('rarities'); + static async allRarities(): Promise { + const response = await Client.get('rarities'); + return response; } -} \ No newline at end of file +}